Ride window: position graph buttons properly

This commit is contained in:
Aaron van Geffen 2020-10-14 17:51:58 +02:00 committed by GitHub
parent 01d57872fe
commit 0c283ba3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5742,7 +5742,7 @@ static void window_ride_graphs_mouseup(rct_window* w, rct_widgetindex widgetInde
*/
static void window_ride_graphs_resize(rct_window* w)
{
window_set_resize(w, 316, 180, 500, 450);
window_set_resize(w, 316, 182, 500, 450);
}
/**
@ -5909,7 +5909,7 @@ static void window_ride_graphs_invalidate(rct_window* w)
// Anchor graph widget
auto x = w->width - 4;
auto y = w->height - 18;
auto y = w->height - BUTTON_FACE_HEIGHT - 8;
window_ride_graphs_widgets[WIDX_GRAPH].right = x;
window_ride_graphs_widgets[WIDX_GRAPH].bottom = y;
@ -5918,7 +5918,7 @@ static void window_ride_graphs_invalidate(rct_window* w)
window_ride_graphs_widgets[WIDX_GRAPH_ALTITUDE].top = y;
window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].top = y;
window_ride_graphs_widgets[WIDX_GRAPH_LATERAL].top = y;
y += 11;
y += BUTTON_FACE_HEIGHT + 1;
window_ride_graphs_widgets[WIDX_GRAPH_VELOCITY].bottom = y;
window_ride_graphs_widgets[WIDX_GRAPH_ALTITUDE].bottom = y;
window_ride_graphs_widgets[WIDX_GRAPH_VERTICAL].bottom = y;