From 5035492f8cf93a03eac799a92f8cb30df2bb3ed9 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Fri, 27 Oct 2017 12:06:28 +0200 Subject: [PATCH] Fix #6535: Donut shop renders black spots that should be white Issue caused by a regression that also broke #1749 (rainbow path) and the pause button. Reinstated the fix from 599c259603c87f2c8c000f1c1b7ce2c9a70ff16b. --- src/openrct2/platform/shared.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 1097201e61..685b6b516b 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -113,6 +113,12 @@ void platform_update_palette(const uint8* colours, sint32 start_index, sint32 nu colours += 4; } + // Fix #1749 and #6535: rainbow path, donut shop and pause button contain black spots that should be white. + gPalette[255].alpha = 0; + gPalette[255].red = 255; + gPalette[255].green = 255; + gPalette[255].blue = 255; + if (!gOpenRCT2Headless) { drawing_engine_set_palette(gPalette); }