1
/***************************************************************************
3
Mad Motor video emulation - Bryan McPhail, mish@tendril.co.uk
5
Notes: Playfield 3 can change size between 512x1024 and 2048x256
7
***************************************************************************/
10
#include "includes/madmotor.h"
11
#include "video/decbac06.h"
12
#include "video/decmxc06.h"
14
/******************************************************************************/
16
VIDEO_START( madmotor )
20
/******************************************************************************/
23
/******************************************************************************/
25
SCREEN_UPDATE( madmotor )
27
madmotor_state *state = screen->machine().driver_data<madmotor_state>();
28
flip_screen_set(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state());
30
// tilemap_set_flip_all(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
32
screen->machine().device<deco_bac06_device>("tilegen3")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
33
screen->machine().device<deco_bac06_device>("tilegen2")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
34
screen->machine().device<deco_mxc06_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram, 0x00, 0x00, 0x0f);
35
screen->machine().device<deco_bac06_device>("tilegen1")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);