diff --git a/source/common/textures/imagehelpers.cpp b/source/common/textures/imagehelpers.cpp index 1009ce22d..56eae26d3 100644 --- a/source/common/textures/imagehelpers.cpp +++ b/source/common/textures/imagehelpers.cpp @@ -43,6 +43,7 @@ namespace ImageHelpers int WhiteIndex, BlackIndex; int alphaThreshold; ColorTable256k RGB256k; + _BasePalette BasePalette; int BestColor(int r, int g, int b, int first, int num) { diff --git a/source/common/textures/imagehelpers.h b/source/common/textures/imagehelpers.h index ca9bfca59..877a1873e 100644 --- a/source/common/textures/imagehelpers.h +++ b/source/common/textures/imagehelpers.h @@ -144,7 +144,7 @@ namespace ImageHelpers } } - struct + struct _BasePalette { PalEntry operator[](int index) { @@ -152,7 +152,9 @@ namespace ImageHelpers palette[index * 3 + 0], palette[index * 3 + 1], palette[index * 3 + 2] - ); + ); } - } BasePalette; + }; + + extern _BasePalette BasePalette; }