summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/video/madmotor.c
blob: b99e8baad278de46897b510ff3b7bd5cb4f8abf2 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                            
                
                              
                           
                           




                                                                                

 

                                                                                


                                                                                
                         
 

                                                                                                                      
 
                                                                                                                                                             
 

                                                                                                                                                                   
                                                                                                                                                          
                                                                                                                                                 

                 
/***************************************************************************

  Mad Motor video emulation - Bryan McPhail, mish@tendril.co.uk

  Notes:  Playfield 3 can change size between 512x1024 and 2048x256

***************************************************************************/

#include "emu.h"
#include "includes/madmotor.h"
#include "video/decbac06.h"
#include "video/decmxc06.h"

/******************************************************************************/

VIDEO_START( madmotor )
{
}

/******************************************************************************/


/******************************************************************************/

SCREEN_UPDATE( madmotor )
{
	madmotor_state *state = screen->machine().driver_data<madmotor_state>();
	flip_screen_set(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state());

//  tilemap_set_flip_all(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);

	screen->machine().device<deco_bac06_device>("tilegen3")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
	screen->machine().device<deco_bac06_device>("tilegen2")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
	screen->machine().device<deco_mxc06_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram, 0x00, 0x00, 0x0f);
	screen->machine().device<deco_bac06_device>("tilegen1")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
	return 0;
}