mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 14:53:31 +00:00
Tiny tweak to vertically centered text to make it more centered
This commit is contained in:
parent
ce50063f1a
commit
aea6cbbabc
@ -29,7 +29,7 @@
|
||||
# If the text is too high it returns the top side.
|
||||
# Rounding happens to the bottom side.
|
||||
#define GUI__TEXT_VERTICALLY_CENTRED
|
||||
"(if(text_height < height, (height - text_height) / 2, 0))"
|
||||
"(if(text_height < height, (height - text_height - 1) / 2, 0))"
|
||||
#enddef
|
||||
|
||||
#define GUI__CENTERED_TEXT FONT_SIZE FONT_STYLE FONT_COLOR
|
||||
|
Loading…
x
Reference in New Issue
Block a user