mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #7045: Theme window's colour pickers not drawn properly on OpenGL
Remove unnecessary transparent flag when drawing colour buttons.
This commit is contained in:
parent
b6ae8a758e
commit
7f2936b8fb
|
@ -22,6 +22,7 @@
|
|||
- Fix: [#5905] Urban Park merry-go-round has entrance and exit swapped (original bug).
|
||||
- Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).
|
||||
- Fix: [#7039] Map window not rendering properly when using OpenGL.
|
||||
- Fix: [#7045] Theme window's colour pickers not drawn properly on OpenGL.
|
||||
- Fix: [#7729] Money Input Prompt breaks on certain values.
|
||||
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
|
||||
- Fix: [#7913] RCT1/RCT2 title sequence timing is off.
|
||||
|
|
|
@ -904,12 +904,10 @@ void window_themes_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi, int32_t sc
|
|||
gfx_draw_string_left(dpi, theme_desc_get_name(wc), nullptr, w->colours[1], 2, y + 4);
|
||||
|
||||
uint8_t colour = theme_get_colour(wc, j);
|
||||
uint32_t image = SPRITE_ID_PALETTE_COLOUR_1(colour & ~COLOUR_FLAG_TRANSLUCENT) | IMAGE_TYPE_TRANSPARENT
|
||||
| SPR_PALETTE_BTN;
|
||||
uint32_t image = SPRITE_ID_PALETTE_COLOUR_1(colour & ~COLOUR_FLAG_TRANSLUCENT) | SPR_PALETTE_BTN;
|
||||
if (i == _colour_index_1 && j == _colour_index_2)
|
||||
{
|
||||
image = SPRITE_ID_PALETTE_COLOUR_1(colour & ~COLOUR_FLAG_TRANSLUCENT) | IMAGE_TYPE_TRANSPARENT
|
||||
| SPR_PALETTE_BTN_PRESSED;
|
||||
image = SPRITE_ID_PALETTE_COLOUR_1(colour & ~COLOUR_FLAG_TRANSLUCENT) | SPR_PALETTE_BTN_PRESSED;
|
||||
}
|
||||
gfx_draw_sprite(dpi, image, _button_offset_x + 12 * j, y + _button_offset_y, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue