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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user