From e6cc15f033672dec277fb7553d0ad23e6276e684 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 6 Aug 2026 18:40:41 +0200 Subject: [PATCH] Rename members of PaletteIndexType --- src/openrct2/drawing/ImageImporter.cpp | 16 ++++++++-------- src/openrct2/drawing/ImageImporter.h | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/openrct2/drawing/ImageImporter.cpp b/src/openrct2/drawing/ImageImporter.cpp index 5675c59143..dc0c33e089 100644 --- a/src/openrct2/drawing/ImageImporter.cpp +++ b/src/openrct2/drawing/ImageImporter.cpp @@ -391,7 +391,7 @@ namespace OpenRCT2::Drawing bool ImageImporter::IsChangablePixel(int32_t paletteIndex) { PaletteIndexType entryType = GetPaletteIndexType(paletteIndex); - return entryType != PaletteIndexType::Special && entryType != PaletteIndexType::PrimaryRemap; + return entryType != PaletteIndexType::special && entryType != PaletteIndexType::primaryRemap; } /** @@ -400,18 +400,18 @@ namespace OpenRCT2::Drawing ImageImporter::PaletteIndexType ImageImporter::GetPaletteIndexType(int32_t paletteIndex) { if (paletteIndex <= 9) - return PaletteIndexType::Special; + return PaletteIndexType::special; if (paletteIndex >= 230 && paletteIndex <= 239) - return PaletteIndexType::Special; + return PaletteIndexType::special; if (paletteIndex == 255) - return PaletteIndexType::Special; + return PaletteIndexType::special; if (paletteIndex >= 243 && paletteIndex <= 254) - return PaletteIndexType::PrimaryRemap; + return PaletteIndexType::primaryRemap; if (paletteIndex >= 202 && paletteIndex <= 213) - return PaletteIndexType::SecondaryRemap; + return PaletteIndexType::secondaryRemap; if (paletteIndex >= 46 && paletteIndex <= 57) - return PaletteIndexType::TertiaryRemap; - return PaletteIndexType::Normal; + return PaletteIndexType::tertiaryRemap; + return PaletteIndexType::normal; } int32_t ImageImporter::GetClosestPaletteIndex(const GamePalette& palette, const int16_t* colour) diff --git a/src/openrct2/drawing/ImageImporter.h b/src/openrct2/drawing/ImageImporter.h index aa4243999f..fba9d08548 100644 --- a/src/openrct2/drawing/ImageImporter.h +++ b/src/openrct2/drawing/ImageImporter.h @@ -71,11 +71,11 @@ namespace OpenRCT2::Drawing private: enum class PaletteIndexType : uint8_t { - Normal, - PrimaryRemap, - SecondaryRemap, - TertiaryRemap, - Special, + normal, + primaryRemap, + secondaryRemap, + tertiaryRemap, + special, }; static std::vector GetPixels(const Image& image, const ImageImportMeta& meta);