Fixed black caption bar being green

This commit is contained in:
Robert Jordan 2015-06-10 15:55:15 -04:00
parent 723fcafd51
commit 35cce1a4df
1 changed files with 6 additions and 1 deletions

View File

@ -657,7 +657,12 @@ static void widget_caption_draw(rct_drawpixelinfo *dpi, rct_window *w, int widge
press |= 0x80;
gfx_fill_rect_inset(dpi, l, t, r, b, colour, press);
gfx_fill_rect(dpi, l + 1, t + 1, r - 1, b - 1, 0x2000000 | 47);
// Black caption bars look slightly green, this fixes that
if (colour == 0)
gfx_fill_rect(dpi, l + 1, t + 1, r - 1, b - 1, *((char*)(0x0141FC47 + (colour * 8))));
else
gfx_fill_rect(dpi, l + 1, t + 1, r - 1, b - 1, 0x2000000 | 47);
}
// Draw text