mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Create weak enum for PaletteIndex
This commit is contained in:
committed by
GitHub
parent
6693278b7f
commit
cfb4b008b2
@@ -240,7 +240,7 @@ static DrawPixelInfo CreateDPI(const Viewport& viewport)
|
||||
|
||||
if (viewport.flags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND)
|
||||
{
|
||||
std::memset(dpi.bits, PALETTE_INDEX_0, static_cast<size_t>(dpi.width) * dpi.height);
|
||||
std::memset(dpi.bits, PaletteIndex::pi0, static_cast<size_t>(dpi.width) * dpi.height);
|
||||
}
|
||||
|
||||
return dpi;
|
||||
|
||||
Reference in New Issue
Block a user