1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Progress on displaying new colors in software renderer

This commit is contained in:
Trevor Finney
2023-02-22 07:42:28 -05:00
parent 4b87f9a2e1
commit 337602e4a7
2 changed files with 0 additions and 6 deletions

View File

@@ -458,8 +458,6 @@ void WindowDropdownShowColour(WindowBase* w, Widget* widget, uint8_t dropdownCol
if (selectedColour == orderedColour)
defaultIndex = orderedColour;
// Get palette offset for G2 colours
// Use special graphic for Invisible colour
auto imageId = (orderedColour == COLOUR_OFFSET_INVISIBLE) ? ImageId(SPR_G2_ICON_PALETTE_INVISIBLE - 1, COLOUR_WHITE) : ImageId(SPR_PALETTE_BTN, orderedColour);

View File

@@ -408,10 +408,6 @@ static std::optional<PaletteMap> FASTCALL GfxDrawSpriteGetPalette(ImageId imageI
if (!imageId.HasSecondary())
{
uint8_t paletteId = imageId.GetRemap();
if (!imageId.IsBlended())
{
paletteId &= 0x7F;
}
return GetPaletteMapForColour(paletteId);
}