summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/acefruit.c
diff options
context:
space:
mode:
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
commita50849088e1406403ffdef0c15b97e74923c3bee (patch)
tree03e9309750dd1fee44133092444866cee09ac404 /src/mame/drivers/acefruit.c
parent16c2e208e340d22f24163da9007051c8d8e063f5 (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/drivers/acefruit.c')
-rw-r--r--src/mame/drivers/acefruit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/acefruit.c b/src/mame/drivers/acefruit.c
index 8ae48d1ee27..d98897f667f 100644
--- a/src/mame/drivers/acefruit.c
+++ b/src/mame/drivers/acefruit.c
@@ -118,17 +118,17 @@ static SCREEN_UPDATE_IND16( acefruit )
int x;
static const int spriteskip[] = { 1, 2, 4 };
int spritesize = spriteskip[ color - 5 ];
- const gfx_element *gfx = screen.machine().gfx[ 0 ];
+ gfx_element *gfx = screen.machine().gfx[ 0 ];
for( x = 0; x < 16; x++ )
{
int sprite = ( state->m_spriteram[ ( spriteindex / 64 ) % 6 ] & 0xf ) ^ 0xf;
- const UINT8 *gfxdata = gfx_element_get_data(gfx, sprite);
+ const UINT8 *gfxdata = gfx->get_data(sprite);
for( y = 0; y < 8; y++ )
{
UINT16 *dst = &bitmap.pix16(y + ( row * 8 ), x + ( col * 16 ) );
- *( dst ) = *( gfxdata + ( ( spriterow + y ) * gfx->line_modulo ) + ( ( spriteindex % 64 ) >> 1 ) );
+ *( dst ) = *( gfxdata + ( ( spriterow + y ) * gfx->rowbytes() ) + ( ( spriteindex % 64 ) >> 1 ) );
}
spriteindex += spritesize;