diff options
author | michi_cc <michi_cc@openttd.org> | 2011-10-04 21:35:52 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-10-04 21:35:52 +0000 |
commit | 71bd681d87065d093aa11195d3949cf7b7be4a07 (patch) | |
tree | 026cc10806c15b00c2948378b9538594db039224 /src/newgrf_config.h | |
parent | c575b5bbd7c8a225ff5a2b1120c58edfc96f078d (diff) | |
download | openttd-71bd681d87065d093aa11195d3949cf7b7be4a07.tar.xz |
(svn r23001) -Feature: [NewGRF] Automatically switch to a 32 bpp blitter on NewGRF indication.
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r-- | src/newgrf_config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 253b267a5..bb82732ef 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -58,6 +58,8 @@ enum GRFPalette { GRFP_USE_BIT = 0, ///< The bit used for storing the palette to use. GRFP_GRF_OFFSET = 2, ///< The offset of the GRFP_GRF data. GRFP_GRF_SIZE = 2, ///< The size of the GRFP_GRF data. + GRFP_BLT_OFFSET = 4, ///< The offset of the GRFP_BLT data. + GRFP_BLT_SIZE = 1, ///< The size of the GRFP_BLT data. GRFP_USE_DOS = 0x0, ///< The palette state is set to use the DOS palette. GRFP_USE_WINDOWS = 0x1, ///< The palette state is set to use the Windows palette. @@ -68,6 +70,10 @@ enum GRFPalette { GRFP_GRF_WINDOWS = 0x2 << GRFP_GRF_OFFSET, ///< The NewGRF says the Windows palette can be used. GRFP_GRF_ANY = GRFP_GRF_DOS | GRFP_GRF_WINDOWS, ///< The NewGRF says any palette can be used. GRFP_GRF_MASK = GRFP_GRF_ANY, ///< Bitmask to get only the NewGRF supplied information. + + GRFP_BLT_UNSET = 0x0 << GRFP_BLT_OFFSET, ///< The NewGRF provided no information or doesn't care about a 32 bpp blitter. + GRFP_BLT_32BPP = 0x1 << GRFP_BLT_OFFSET, ///< The NewGRF prefers a 32 bpp blitter. + GRFP_BLT_MASK = GRFP_BLT_32BPP, ///< Bitmask to only get the blitter information. }; |