summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-23 20:16:54 +0000
committerrubidium <rubidium@openttd.org>2008-08-23 20:16:54 +0000
commit200f405706daf97f9e0e15806ce04a021fe7649a (patch)
tree5286eef504f7700e89f70f223dd516dc542ba066 /src/gfx_type.h
parent5de17da66e55661250aba173817ed56d0e46cbee (diff)
downloadopenttd-200f405706daf97f9e0e15806ce04a021fe7649a.tar.xz
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index 6128fdc9b..6682d4b59 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -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 */