1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

use new create_window_centred function

This commit is contained in:
IntelOrca
2015-02-14 18:26:59 +00:00
parent 06da706e1a
commit 66c302eb3d
15 changed files with 26 additions and 62 deletions

View File

@@ -462,7 +462,7 @@ rct_window *window_create_centred(int width, int height, uint32 *event_handlers,
int x, y;
x = (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_WIDTH, uint16) - width) / 2;
y = (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_HEIGHT, uint16) - height) / 2;
y = max(28, (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_HEIGHT, uint16) - height) / 2);
return window_create(x, y, width, height, event_handlers, cls, flags);
}