summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <salese_corp_ltd@email.it>2018-02-02 10:52:20 +0100
committer angelosa <salese_corp_ltd@email.it>2018-02-02 10:54:47 +0100
commit5fea8ccc69d9e6be1145ecb824ccd3813d12f872 (patch)
tree8efc73948cd145b106e99679139c9afe3333e80b
parente422201566ff4aaa0006b2c89f213e9da633ca37 (diff)
namcona1.cpp: fixed video disable graphic transitions (i.e. temporary gfx seizures) [Angelo Salese]
-rw-r--r--src/mame/includes/namcona1.h1
-rw-r--r--src/mame/video/namcona1.cpp10
2 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/includes/namcona1.h b/src/mame/includes/namcona1.h
index c1af25bc9d9..1c81dc7f52f 100644
--- a/src/mame/includes/namcona1.h
+++ b/src/mame/includes/namcona1.h
@@ -152,6 +152,7 @@ private:
void draw_background(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int which, int primask );
void tilemap_get_info(tile_data &tileinfo, int tile_index, const uint16_t *tilemap_videoram, bool use_4bpp_gfx);
void blit_setup( int format, int *bytes_per_row, int *pitch, int mode );
+ void draw_pixel_line( uint16_t *pDest, uint8_t *pPri, uint16_t *pSource, const pen_t *paldata );
TILE_GET_INFO_MEMBER(tilemap_get_info0);
TILE_GET_INFO_MEMBER(tilemap_get_info1);
TILE_GET_INFO_MEMBER(tilemap_get_info2);
diff --git a/src/mame/video/namcona1.cpp b/src/mame/video/namcona1.cpp
index 867c01fed47..52305418e19 100644
--- a/src/mame/video/namcona1.cpp
+++ b/src/mame/video/namcona1.cpp
@@ -428,7 +428,7 @@ void namcona1_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, c
}
} /* draw_sprites */
-static void draw_pixel_line( uint16_t *pDest, uint8_t *pPri, uint16_t *pSource, const pen_t *paldata )
+void namcona1_state::draw_pixel_line( uint16_t *pDest, uint8_t *pPri, uint16_t *pSource, const pen_t *paldata )
{
int x;
for( x=0; x<38*8; x+=2 )
@@ -528,6 +528,10 @@ uint32_t namcona1_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
/* int flipscreen = m_vreg[0x98/2]; (TBA) */
+ screen.priority().fill(0, cliprect );
+
+ bitmap.fill(0xff, cliprect ); /* background color? */
+
if( m_vreg[0x8e/2] )
{ /* gfx enabled */
if( m_palette_is_dirty )
@@ -545,10 +549,6 @@ uint32_t namcona1_state::screen_update(screen_device &screen, bitmap_ind16 &bitm
m_bg_tilemap[4]->set_palette_offset((m_vreg[0xba/2] & 0xf) * 256);
- screen.priority().fill(0, cliprect );
-
- bitmap.fill(0xff, cliprect ); /* background color? */
-
for( priority = 0; priority<8; priority++ )
{
for( which=4; which>=0; which-- )