(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.

This commit is contained in:
rubidium
2008-08-23 20:16:54 +00:00
parent 4335c27218
commit 07c20252c3
8 changed files with 118 additions and 111 deletions

View File

@@ -235,4 +235,12 @@ enum FillRectMode {
FILLRECT_RECOLOR, ///< Apply a recolor sprite to the screen content
};
/** Palettes OpenTTD supports. */
enum Palette {
PAL_DOS, ///< Use the DOS palette.
PAL_WINDOWS, ///< Use the Windows palette.
PAL_AUTODETECT, ///< Automatically detect the palette based on the graphics pack.
MAX_PAL = 2, ///< The number of palettes.
};
#endif /* GFX_TYPE_H */