From 2e40d90f5fa5cb0e508190cad7dec58b567decb1 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Thu, 1 Jun 2017 22:38:35 +0200 Subject: [PATCH] Replace more occurences of 28 --- src/openrct2/windows/install_track.c | 2 +- src/openrct2/windows/top_toolbar.c | 2 +- src/openrct2/windows/track_list.c | 4 ++-- src/openrct2/windows/track_manage.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index 940a287e42..164714c61a 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -129,7 +129,7 @@ void window_install_track_open(const utf8 *path) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); sint32 x = screenWidth / 2 - 201; - sint32 y = max(28, screenHeight / 2 - 200); + sint32 y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); rct_window *w = window_create(x, y, 402, 400, &window_install_track_events, WC_INSTALL_TRACK, 0); w->widgets = window_install_track_widgets; diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index 8501888f19..28cef6b4e7 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -293,7 +293,7 @@ void window_top_toolbar_open() { rct_window * window = window_create( 0, 0, - context_get_width(), 28, + context_get_width(), TOP_TOOLBAR_CLEARANCE, &window_top_toolbar_events, WC_TOP_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 5d0030872c..6149ad1a56 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -125,10 +125,10 @@ void window_track_list_open(ride_list_item item) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); x = screenWidth / 2 - 300; - y = max(28, screenHeight / 2 - 200); + y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); } else { x = 0; - y = 29; + y = TOP_TOOLBAR_CLEARANCE + 1; } rct_window *w = window_create( x, diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index 14c33bebe6..963322cb75 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -258,7 +258,7 @@ static void window_track_delete_prompt_open() sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); rct_window *w = window_create( - max(28, (screenWidth - 250) / 2), + max(TOP_TOOLBAR_CLEARANCE, (screenWidth - 250) / 2), (screenHeight - 44) / 2, 250, 74,