diff options
author | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-02-21 02:00:11 +0000 |
---|---|---|
committer | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-02-21 02:00:11 +0000 |
commit | e5bcee449d8fffefc5303eb1c40ff77040c3a6d5 (patch) | |
tree | 392feac25dbced6053a5138e9442b8b3ae2b54e3 /src/mame/video/superqix.c | |
parent | 288a0adbe1a6f44e4d5e2a74d0a0c9edf0e0772f (diff) |
Removed the pen array lookup from some INDEXED16 drivers
Diffstat (limited to 'src/mame/video/superqix.c')
-rw-r--r-- | src/mame/video/superqix.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c index 37ec42dc290..5416080d32b 100644 --- a/src/mame/video/superqix.c +++ b/src/mame/video/superqix.c @@ -7,7 +7,6 @@ ***************************************************************************/ #include "driver.h" -#include "deprecat.h" UINT8 *superqix_videoram; UINT8 *superqix_bitmapram,*superqix_bitmapram2; @@ -92,8 +91,8 @@ WRITE8_HANDLER( superqix_bitmapram_w ) superqix_bitmapram[offset] = data; - *BITMAP_ADDR16(fg_bitmap[0], y, x + 0) = Machine->pens[data >> 4]; - *BITMAP_ADDR16(fg_bitmap[0], y, x + 1) = Machine->pens[data & 0x0f]; + *BITMAP_ADDR16(fg_bitmap[0], y, x + 0) = data >> 4; + *BITMAP_ADDR16(fg_bitmap[0], y, x + 1) = data & 0x0f; } } @@ -106,8 +105,8 @@ WRITE8_HANDLER( superqix_bitmapram2_w ) superqix_bitmapram2[offset] = data; - *BITMAP_ADDR16(fg_bitmap[1], y, x + 0) = Machine->pens[data >> 4]; - *BITMAP_ADDR16(fg_bitmap[1], y, x + 1) = Machine->pens[data & 0x0f]; + *BITMAP_ADDR16(fg_bitmap[1], y, x + 0) = data >> 4; + *BITMAP_ADDR16(fg_bitmap[1], y, x + 1) = data & 0x0f; } } |