Skip to content

Commit

Permalink
GUI2: simplify GUI_WINDOW_FIXED_SIZE_CENTERED x,y calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 7, 2017
1 parent a0ff2a5 commit 0a2ba65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/gui/macros/_initial.cfg
Expand Up @@ -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
Expand Down

0 comments on commit 0a2ba65

Please sign in to comment.