summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/champbwl.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-01-14 00:39:13 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-01-14 00:39:13 +0000
commit8d1ffc9677f513da4bda481dd2e5d67021043479 (patch)
tree98e70b854ac2cddae2ed2b2182da18df91ffd069 /src/mame/drivers/champbwl.c
parente325b867ece9738594a92d7f75cc45168fdac494 (diff)
Death to SCREEN_EOF, which was ambiguously called either
at the start or end of VBLANK depending on the video flag VIDEO_UPDATE_AFTER_VBLANK. Replaced with SCREEN_VBLANK callbacks which are called both at the start and end of VBLANK, so you can operate either way, and be explicit about it. Updated all callers. Also updated screen_device to use device timers and some other minor cleanups.
Diffstat (limited to 'src/mame/drivers/champbwl.c')
-rw-r--r--src/mame/drivers/champbwl.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/mame/drivers/champbwl.c b/src/mame/drivers/champbwl.c
index f5133af0ca6..375240cb3cb 100644
--- a/src/mame/drivers/champbwl.c
+++ b/src/mame/drivers/champbwl.c
@@ -460,9 +460,11 @@ SCREEN_UPDATE_IND16( champbwl )
return 0;
}
-SCREEN_EOF( champbwl )
+SCREEN_VBLANK( champbwl )
{
- screen.machine().device<seta001_device>("spritegen")->tnzs_eof();
+ // rising edge
+ if (vblank_on)
+ screen.machine().device<seta001_device>("spritegen")->tnzs_eof();
}
@@ -487,7 +489,7 @@ static MACHINE_CONFIG_START( champbwl, champbwl_state )
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_STATIC(champbwl)
- MCFG_SCREEN_EOF_STATIC(champbwl)
+ MCFG_SCREEN_VBLANK_STATIC(champbwl)
MCFG_GFXDECODE(champbwl)
MCFG_PALETTE_LENGTH(512)
@@ -517,9 +519,11 @@ static SCREEN_UPDATE_IND16( doraemon )
return 0;
}
-static SCREEN_EOF( doraemon )
+static SCREEN_VBLANK( doraemon )
{
- screen.machine().device<seta001_device>("spritegen")->setac_eof();
+ // rising edge
+ if (vblank_on)
+ screen.machine().device<seta001_device>("spritegen")->setac_eof();
}
static MACHINE_START( doraemon )
@@ -548,7 +552,7 @@ static MACHINE_CONFIG_START( doraemon, tnzs_state )
MCFG_SCREEN_SIZE(320, 256)
MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 16, 256-16-1)
MCFG_SCREEN_UPDATE_STATIC(doraemon)
- MCFG_SCREEN_EOF_STATIC(doraemon)
+ MCFG_SCREEN_VBLANK_STATIC(doraemon)
MCFG_GFXDECODE(champbwl)
MCFG_PALETTE_LENGTH(512)