Fixup GUI2 centered text formula

This commit is contained in:
Charles Dang 2016-07-28 21:51:15 +11:00
parent 3f2df87bed
commit 95ab7971f8

View file

@ -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) - 1, 0))"
"(if(text_height < height, (height - text_height - 2) / 2, 0))"
#enddef
#define GUI__CENTERED_TEXT FONT_SIZE FONT_STYLE FONT_COLOR