Fix width of park rating bar in bottom toolbar

This commit is contained in:
Jonathan Haas 2017-01-17 23:11:12 +01:00 committed by Michael Steenbeek
parent 6016339773
commit 2fda0c8a1f
1 changed files with 2 additions and 2 deletions

View File

@ -426,8 +426,8 @@ static void window_game_bottom_toolbar_draw_park_rating(rct_drawpixelinfo *dpi,
{
sint16 bar_width;
bar_width = (factor * (90 + WIDTH_MOD)) / 256;
gfx_fill_rect_inset(dpi, x, y + 1, x + (93 + WIDTH_MOD), y + 9, w->colours[1], INSET_RECT_F_30);
bar_width = (factor * (92 + WIDTH_MOD)) / 255;
gfx_fill_rect_inset(dpi, x + 1, y + 1, x + (92 + WIDTH_MOD), y + 9, w->colours[1], INSET_RECT_F_30);
if (!(colour & 0x80000000) || game_is_paused() || (gCurrentTicks & 8)) {
if (bar_width > 2)
gfx_fill_rect_inset(dpi, x + 2, y + 2, x + bar_width - 1, y + 8, colour & 0x7FFFFFFF, 0);