GUI2: simplify GUI_WINDOW_FIXED_SIZE_CENTERED x,y calc

This commit is contained in:
Charles Dang 2017-04-07 12:13:21 +11:00
parent a0ff2a5e96
commit 0a2ba65046

View file

@ -252,8 +252,8 @@
width = "(min(screen_width, {WIDTH}))"
height = "(min(screen_height, {HEIGHT}))"
x = "(screen_width / 2 - window_width / 2)"
y = "(screen_height / 2 - window_height / 2)"
x = "(floor((screen_width - window_width) / 2))"
y = "(floor((screen_height - window_height) / 2))"
#enddef
#define GUI_CENTERED_IMAGE