mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Create weak enum for PaletteIndex
This commit is contained in:
committed by
GitHub
parent
6693278b7f
commit
cfb4b008b2
@@ -48,10 +48,10 @@ namespace OpenRCT2::Ui::Windows
|
||||
constexpr int16_t TRACK_MINI_PREVIEW_HEIGHT = 78;
|
||||
constexpr uint16_t TRACK_MINI_PREVIEW_SIZE = TRACK_MINI_PREVIEW_WIDTH * TRACK_MINI_PREVIEW_HEIGHT;
|
||||
|
||||
static constexpr uint8_t kPaletteIndexColourEntrance = PALETTE_INDEX_20; // White
|
||||
static constexpr uint8_t kPaletteIndexColourExit = PALETTE_INDEX_10; // Black
|
||||
static constexpr uint8_t kPaletteIndexColourTrack = PALETTE_INDEX_248; // Grey (dark)
|
||||
static constexpr uint8_t kPaletteIndexColourStation = PALETTE_INDEX_252; // Grey (light)
|
||||
static constexpr uint8_t kPaletteIndexColourEntrance = PaletteIndex::pi20; // White
|
||||
static constexpr uint8_t kPaletteIndexColourExit = PaletteIndex::pi10; // Black
|
||||
static constexpr uint8_t kPaletteIndexColourTrack = PaletteIndex::pi248; // Grey (dark)
|
||||
static constexpr uint8_t kPaletteIndexColourStation = PaletteIndex::pi252; // Grey (light)
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -430,7 +430,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
void ClearMiniPreview()
|
||||
{
|
||||
// Fill with transparent colour.
|
||||
std::fill(_miniPreview.begin(), _miniPreview.end(), PALETTE_INDEX_0);
|
||||
std::fill(_miniPreview.begin(), _miniPreview.end(), PaletteIndex::pi0);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user