GUI2: simplify GUI_WINDOW_FIXED_SIZE_CENTERED x,y calc
This commit is contained in:
parent
a0ff2a5e96
commit
0a2ba65046
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue