diff options
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 |
commit | 8d1ffc9677f513da4bda481dd2e5d67021043479 (patch) | |
tree | 98e70b854ac2cddae2ed2b2182da18df91ffd069 /src/mame/drivers/galpanic.c | |
parent | e325b867ece9738594a92d7f75cc45168fdac494 (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/galpanic.c')
-rw-r--r-- | src/mame/drivers/galpanic.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/mame/drivers/galpanic.c b/src/mame/drivers/galpanic.c index ce20788dafd..bf59d10f1c3 100644 --- a/src/mame/drivers/galpanic.c +++ b/src/mame/drivers/galpanic.c @@ -125,10 +125,14 @@ The current set of Super Model is an example of type C #include "includes/galpanic.h" #include "includes/galpnipt.h" -static SCREEN_EOF( galpanic ) +static SCREEN_VBLANK( galpanic ) { - device_t *pandora = screen.machine().device("pandora"); - pandora_eof(pandora); + // rising edge + if (vblank_on) + { + device_t *pandora = screen.machine().device("pandora"); + pandora_eof(pandora); + } } static TIMER_DEVICE_CALLBACK( galpanic_scanline ) @@ -577,7 +581,7 @@ static MACHINE_CONFIG_START( galpanic, galpanic_state ) MCFG_SCREEN_SIZE(256, 256) MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0, 224-1) MCFG_SCREEN_UPDATE_STATIC(galpanic) - MCFG_SCREEN_EOF_STATIC( galpanic ) + MCFG_SCREEN_VBLANK_STATIC( galpanic ) MCFG_GFXDECODE(galpanic) MCFG_PALETTE_LENGTH(1024 + 32768) @@ -615,7 +619,7 @@ static MACHINE_CONFIG_DERIVED( comad, galpanic ) /* video hardware */ MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_STATIC(comad) - MCFG_SCREEN_EOF_NONE() + MCFG_SCREEN_VBLANK_NONE() MACHINE_CONFIG_END static MACHINE_CONFIG_DERIVED( supmodel, comad ) @@ -629,7 +633,7 @@ static MACHINE_CONFIG_DERIVED( supmodel, comad ) /* video hardware */ MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_STATIC(comad) - MCFG_SCREEN_EOF_NONE() + MCFG_SCREEN_VBLANK_NONE() /* sound hardware */ MCFG_OKIM6295_REPLACE("oki", 1584000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified @@ -647,7 +651,7 @@ static MACHINE_CONFIG_DERIVED( fantsia2, comad ) /* video hardware */ MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_STATIC(comad) - MCFG_SCREEN_EOF_NONE() + MCFG_SCREEN_VBLANK_NONE() MACHINE_CONFIG_END static MACHINE_CONFIG_DERIVED( galhustl, comad ) @@ -662,7 +666,7 @@ static MACHINE_CONFIG_DERIVED( galhustl, comad ) /* video hardware */ MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_STATIC(comad) - MCFG_SCREEN_EOF_NONE() + MCFG_SCREEN_VBLANK_NONE() /* sound hardware */ MCFG_OKIM6295_REPLACE("oki", 1056000, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified |