From e422201566ff4aaa0006b2c89f213e9da633ca37 Mon Sep 17 00:00:00 2001 From: angelosa Date: Fri, 2 Feb 2018 10:32:27 +0100 Subject: namcona1.cpp: fixed status bar colors for VS Express event in Numan Athletics [Angelo Salese] --- src/mame/video/namcona1.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mame/video/namcona1.cpp b/src/mame/video/namcona1.cpp index 59364b755ea..867c01fed47 100644 --- a/src/mame/video/namcona1.cpp +++ b/src/mame/video/namcona1.cpp @@ -469,7 +469,6 @@ void namcona1_state::draw_background(screen_device &screen, bitmap_ind16 &bitmap * tmap3 ffec00 ffee00 */ const uint16_t *scroll = &m_scroll[which * 0x400/2]; - const pen_t *paldata = &m_palette->pen(m_bg_tilemap[which]->palette_offset()); rectangle clip = cliprect; int xadjust = 0x3a - which*2; int scrollx = 0; @@ -496,11 +495,16 @@ void namcona1_state::draw_background(screen_device &screen, bitmap_ind16 &bitmap if (line >= cliprect.min_y && line <= cliprect.max_y) { + // TODO: not convinced about this trigger if( xdata == 0xc001 ) { - /* This is a simplification, but produces the correct behavior for the only game that uses this + /* This is a simplification, but produces the correct behavior for the only game that uses this * feature, Numan Athletics. */ + // TODO: with this it breaks colors in VS Express event, likely pal bank is somewhere else in this mode, assuming it has one anyway? + //const pen_t *paldata = &m_palette->pen(m_bg_tilemap[which]->palette_offset()); + const pen_t *paldata = &m_palette->pen(0); + draw_pixel_line(&bitmap.pix16(line), &screen.priority().pix8(line), m_videoram + ydata + 25, -- cgit v1.2.3