summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-04-27 12:15:14 +0000
committerfrosch <frosch@openttd.org>2014-04-27 12:15:14 +0000
commit631e8b45fd7bbd95766ee294304fad38dda946dc (patch)
tree67a68a8e68f7c7f05dd17d86071391e4fb778a37 /src/gfx_type.h
parent77889ab8e80653cb09cfc25b1d918b3562f1eab9 (diff)
downloadopenttd-631e8b45fd7bbd95766ee294304fad38dda946dc.tar.xz
(svn r26522) -Add: A config-file-only setting to disable usage of 8bpp video modes.
-Remove: [win32] fullscreen_bpp setting, which is replaced by above setting. -Change: Disable usage of 8bpp blitters and video modes by default. Many modern OS and hardware cause issues with those.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index 2b792d090..0633bdd52 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -300,4 +300,11 @@ struct Palette {
int count_dirty; ///< The number of dirty elements.
};
+/** Modes for 8bpp support */
+enum Support8bpp {
+ S8BPP_NONE = 0, ///< No support for 8bpp by OS or hardware, force 32bpp blitters.
+ S8BPP_SYSTEM, ///< No 8bpp support by hardware, do not try to use 8bpp video modes or hardware palettes.
+ S8BPP_HARDWARE, ///< Full 8bpp support by OS and hardware.
+};
+
#endif /* GFX_TYPE_H */