summaryrefslogblamecommitdiffstatshomepage
path: root/src/mame/video/dietgo.cpp
blob: 299c6f61f59ebffc77bfcd9d463190a38df05911 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
                
                            
 
                                                                                                            
 
                                                       
                                                                       
 
                                      
                                                
                                                                        
 
                                                      
 

                                                                                         
 
                                                                     

                 
// license:BSD-3-Clause
// copyright-holders:Bryan McPhail, David Haywood
#include "emu.h"
#include "includes/dietgo.h"

uint32_t dietgo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
	address_space &space = machine().dummy_space();
	uint16_t flip = m_deco_tilegen->pf_control_r(space, 0, 0xffff);

	flip_screen_set(BIT(flip, 7));
	m_sprgen->set_flip_screen(BIT(flip, 7));
	m_deco_tilegen->pf_update(m_pf_rowscroll[0], m_pf_rowscroll[1]);

	bitmap.fill(256, cliprect); /* not verified */

	m_deco_tilegen->tilemap_2_draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
	m_deco_tilegen->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);

	m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
	return 0;
}