diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-09-06 06:19:32 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-09-06 06:19:32 +0000 |
commit | a50849088e1406403ffdef0c15b97e74923c3bee (patch) | |
tree | 03e9309750dd1fee44133092444866cee09ac404 /src/mame/video/madalien.c | |
parent | 16c2e208e340d22f24163da9007051c8d8e063f5 (diff) |
gfx_element is now a class. Accessors are provided for all
necessary elements. Updated some of the more, ah, creative
uses/abuses of the gfx_elements. [Aaron Giles]
Diffstat (limited to 'src/mame/video/madalien.c')
-rw-r--r-- | src/mame/video/madalien.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c index df41bf23ce8..35389e58963 100644 --- a/src/mame/video/madalien.c +++ b/src/mame/video/madalien.c @@ -153,7 +153,7 @@ static VIDEO_START( madalien ) state->m_headlight_bitmap = auto_bitmap_ind16_alloc(machine, 128, 128); - gfx_element_set_source(machine.gfx[0], state->m_charram); + machine.gfx[0]->set_source(state->m_charram); drawgfx_opaque(*state->m_headlight_bitmap, state->m_headlight_bitmap->cliprect(), machine.gfx[2], 0, 0, 0, 0, 0x00, 0x00); drawgfx_opaque(*state->m_headlight_bitmap, state->m_headlight_bitmap->cliprect(), machine.gfx[2], 0, 0, 0, 1, 0x00, 0x40); @@ -246,7 +246,7 @@ static void draw_foreground(running_machine &machine, bitmap_ind16 &bitmap, cons WRITE8_MEMBER(madalien_state::madalien_charram_w) { m_charram[offset] = data; - gfx_element_mark_dirty(machine().gfx[0], (offset/8) & 0xff); + machine().gfx[0]->mark_dirty((offset/8) & 0xff); } |