diff options
author | 2012-01-17 06:16:20 +0000 | |
---|---|---|
committer | 2012-01-17 06:16:20 +0000 | |
commit | 81d3e50238dc12e6be1acf9d1f164b954b382db8 (patch) | |
tree | 6147df9b01265196267d8aa73f32623c9ae2bd13 /src/emu/drawgfx.h | |
parent | aeb29c33a2dec9d7de69b2d7549488a613eeb61e (diff) |
Remove support for 4bpp packed graphics. These only manifested
for drivers that used GFX_RAW support for 4bpp systems, and yet
we had a bunch of extra code to support it. Updated these drivers
to do without it and removed all the extra code for supporting
it.
Diffstat (limited to 'src/emu/drawgfx.h')
-rw-r--r-- | src/emu/drawgfx.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/emu/drawgfx.h b/src/emu/drawgfx.h index 5138390907d..44d9b89030b 100644 --- a/src/emu/drawgfx.h +++ b/src/emu/drawgfx.h @@ -31,8 +31,7 @@ #define EXTENDED_XOFFS { 0 } #define EXTENDED_YOFFS { 0 } -#define GFX_ELEMENT_PACKED 1 /* two 4bpp pixels are packed in one byte of gfxdata */ -#define GFX_ELEMENT_DONT_FREE 2 /* gfxdata was not malloc()ed, so don't free it on exit */ +#define GFX_ELEMENT_DONT_FREE 1 /* gfxdata was not malloc()ed, so don't free it on exit */ #define GFX_RAW 0x12345678 /* When planeoffset[0] is set to GFX_RAW, the gfx data is left as-is, with no conversion. @@ -41,7 +40,6 @@ xoffset[0] is an optional displacement (*8) from the beginning of the source data, while yoffset[0] is the line modulo (*8) and charincrement the char modulo (*8). They are *8 for consistency with the usual behaviour, but the bottom 3 bits are not used. - GFX_ELEMENT_PACKED is automatically set if planes is <= 4. This special mode can be used to save memory in games that require several different handlings of the same ROM data (e.g. metro.c can use both 4bpp and 8bpp tiles, and both @@ -92,8 +90,8 @@ enum #define GFXDECODE_END { 0 } }; /* these macros are used for declaring gfx_layout structures. */ -#define GFXLAYOUT_RAW( name, planes, width, height, linemod, charmod ) \ -const gfx_layout name = { width, height, RGN_FRAC(1,1), planes, { GFX_RAW }, { 0 }, { linemod }, charmod }; +#define GFXLAYOUT_RAW( name, width, height, linemod, charmod ) \ +const gfx_layout name = { width, height, RGN_FRAC(1,1), 8, { GFX_RAW }, { 0 }, { linemod }, charmod }; @@ -142,7 +140,7 @@ public: UINT32 * pen_usage; /* bitmask of pens that are used (pens 0-31 only) */ - UINT8 * gfxdata; /* pixel data, 8bpp or 4bpp (if GFX_ELEMENT_PACKED) */ + UINT8 * gfxdata; /* pixel data, 8bpp */ UINT32 line_modulo; /* bytes between each row of data */ UINT32 char_modulo; /* bytes between each element */ const UINT8 * srcdata; /* pointer to the source data for decoding */ |