diff options
Diffstat (limited to 'src/mame/video/seta001.c')
-rw-r--r-- | src/mame/video/seta001.c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/mame/video/seta001.c b/src/mame/video/seta001.c index 8d41a6658db..df783f58aee 100644 --- a/src/mame/video/seta001.c +++ b/src/mame/video/seta001.c @@ -31,7 +31,8 @@ const device_type SETA001_SPRITE = &device_creator<seta001_device>; seta001_device::seta001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, SETA001_SPRITE, "seta001_device", tag, owner, clock, "seta001", __FILE__), - m_gfxdecode(*this) + m_gfxdecode(*this), + m_palette(*this) { } @@ -45,6 +46,15 @@ void seta001_device::static_set_gfxdecode_tag(device_t &device, const char *tag) downcast<seta001_device &>(device).m_gfxdecode.set_tag(tag); } +//------------------------------------------------- +// static_set_palette_tag: Set the tag of the +// palette device +//------------------------------------------------- + +void seta001_device::static_set_palette_tag(device_t &device, const char *tag) +{ + downcast<seta001_device &>(device).m_palette.set_tag(tag); +} void seta001_device::device_start() { @@ -288,28 +298,28 @@ void seta001_device::draw_background( bitmap_ind16 &bitmap, const rectangle &cli color = ( color >> (16-5) ) % total_color_codes; code &= 0x3fff; - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, ((sx) & 0x1ff),((sy) & 0x0ff), transpen); - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, ((sx) & 0x1ff)-512,((sy) & 0x0ff), transpen); - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, ((sx) & 0x1ff),((sy) & 0x0ff)-256, transpen); - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, @@ -377,7 +387,7 @@ void seta001_device::draw_foreground( screen_device &screen, bitmap_ind16 &bitma flipy = !flipy; } - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, @@ -385,7 +395,7 @@ void seta001_device::draw_foreground( screen_device &screen, bitmap_ind16 &bitma max_y - ((sy + yoffs) & 0x0ff),m_transpen); /* wrap around x */ - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, @@ -393,7 +403,7 @@ void seta001_device::draw_foreground( screen_device &screen, bitmap_ind16 &bitma max_y - ((sy + yoffs) & 0x0ff),m_transpen); - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, @@ -401,7 +411,7 @@ void seta001_device::draw_foreground( screen_device &screen, bitmap_ind16 &bitma max_y - ((sy + yoffs) & 0x0ff)-256,m_transpen); /* wrap around x */ - m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, + m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,cliprect, code, color, flipx,flipy, |