Skip to content

Commit f6de199

Browse files
committed
expose allegro->sdl_palette conversion
1 parent 01eeef5 commit f6de199

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/System/ContentFile.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ namespace RTE {
150150
FMOD::Sound* GetAsSound(bool abortGameForInvalidSound = true, bool asyncLoading = true);
151151
#pragma endregion
152152

153+
/// Copies the default palette to an sdl palette.
154+
static SDL_Palette* DefaultPaletteToSDL();
155+
153156
private:
154157
/// Enumeration for loading BITMAPs by bit depth. NOTE: This can't be lower down because s_LoadedBitmaps relies on this definition.
155158
enum BitDepths {
@@ -200,8 +203,6 @@ namespace RTE {
200203
#pragma endregion
201204

202205
#pragma region Data Handling
203-
/// Copies the default palette to an sdl palette.
204-
static SDL_Palette* DefaultPaletteToSDL();
205206

206207
/// Loads the data from dataPahtToLoad as an SDL_Surface.
207208
/// This prevents allegro from doing anything to the image colors it'd otherwise be doing, like breaking the palette or removing alpha values.

0 commit comments

Comments
 (0)