diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2011-02-24 13:51:21 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2011-02-24 13:51:21 +0000 |
commit | 50b692dd2464a3bb6dc8408ceb2405288effab8f (patch) | |
tree | 77d38036043907ff66d9b9471c4e36995fed7aaf /src/mame/drivers/r2dtank.c | |
parent | d8cb0ac416caf49efcb7497e87806e3e9ac80f6e (diff) |
Modified video update system. [Miodrag Milanovic]
Screen update function is now per screen device
(it was before but was attached to machine driver)
MCFG_VIDEO_UPDATE -> MCFG_SCREEN_UPDATE
MCFG_VIDEO_EOF -> MCFG_SCREEN_EOF
EOF is now executed for all screens, so for all existing it
is defined just for one screen. This part will be updated in future.
Note that there are now screen_update and screen_eof virtual functions
for "modern" drivers which are called same as they did before.
All drivers are updated and in places where update function was separated per
screen I did name separate function.
This change will enable us to put screen definition fully into device.
Diffstat (limited to 'src/mame/drivers/r2dtank.c')
-rw-r--r-- | src/mame/drivers/r2dtank.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/drivers/r2dtank.c b/src/mame/drivers/r2dtank.c index 343e20e51d8..e4ef65a6d6e 100644 --- a/src/mame/drivers/r2dtank.c +++ b/src/mame/drivers/r2dtank.c @@ -382,7 +382,7 @@ static const mc6845_interface mc6845_intf = }; -static VIDEO_UPDATE( r2dtank ) +static SCREEN_UPDATE( r2dtank ) { device_t *mc6845 = screen->machine->device("crtc"); mc6845_update(mc6845, bitmap, cliprect); @@ -527,11 +527,10 @@ static MACHINE_CONFIG_START( r2dtank, driver_device ) MCFG_NVRAM_ADD_0FILL("nvram") /* video hardware */ - MCFG_VIDEO_UPDATE(r2dtank) - MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) MCFG_SCREEN_RAW_PARAMS(PIXEL_CLOCK, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */ + MCFG_SCREEN_UPDATE(r2dtank) MCFG_MC6845_ADD("crtc", MC6845, CRTC_CLOCK, mc6845_intf) |