mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Use COMMA32 instead of UINT16 for future-proofing; amend changelog.
This commit is contained in:
@@ -1056,13 +1056,13 @@ static void window_park_rating_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
INSET_RECT_F_30);
|
||||
|
||||
// Y axis labels
|
||||
x = x + widget->left + 23;
|
||||
x = x + widget->left + 27;
|
||||
y = y + widget->top + 23;
|
||||
for (int i = 5; i >= 0; i--)
|
||||
{
|
||||
uint16_t axisValue = i * 200;
|
||||
uint32_t axisValue = i * 200;
|
||||
gfx_draw_string_right(dpi, STR_GRAPH_AXIS_LABEL, &axisValue, COLOUR_BLACK, x + 10, y);
|
||||
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 28, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
|
||||
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 32, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
@@ -1187,13 +1187,13 @@ static void window_park_guests_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
INSET_RECT_F_30);
|
||||
|
||||
// Y axis labels
|
||||
x = x + widget->left + 23;
|
||||
x = x + widget->left + 27;
|
||||
y = y + widget->top + 23;
|
||||
for (int i = 5; i >= 0; i--)
|
||||
{
|
||||
uint16_t axisValue = i * 1000;
|
||||
uint32_t axisValue = i * 1000;
|
||||
gfx_draw_string_right(dpi, STR_GRAPH_AXIS_LABEL, &axisValue, COLOUR_BLACK, x + 10, y);
|
||||
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 28, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
|
||||
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 32, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user