1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Fix primary color picker for canvas tent (#17416)

This commit is contained in:
Artem Yanenko
2022-06-20 21:24:09 +02:00
committed by GitHub
parent 13db5a771b
commit 29beb2962d

View File

@@ -4798,8 +4798,7 @@ static void WindowRideColourPaint(rct_window* w, rct_drawpixelinfo* dpi)
auto stationObj = ride->GetStationObject();
if (stationObj != nullptr && stationObj->BaseImageId != ImageIndexUndefined)
{
auto imageTemplate = ImageId(trackColour.main, trackColour.additional);
auto imageId = imageTemplate.WithIndex(stationObj->BaseImageId);
auto imageId = ImageId(stationObj->BaseImageId, trackColour.main, trackColour.additional);
// Back
gfx_draw_sprite(&clippedDpi, imageId, { 34, 20 });