From c4f6f90ff8f0a9c77ec8bca1b9904a816cf9a41b Mon Sep 17 00:00:00 2001 From: smf- Date: Thu, 15 Feb 2018 21:38:58 +0000 Subject: [PATCH] Popeye: Fixed TPP2 test mode background. [smf] --- src/mame/video/popeye.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/video/popeye.cpp b/src/mame/video/popeye.cpp index d40b436d46e..aeb33b7c66f 100644 --- a/src/mame/video/popeye.cpp +++ b/src/mame/video/popeye.cpp @@ -423,7 +423,7 @@ void tnx1_state::draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect for (int x = cliprect.min_x; x <= cliprect.max_x; x++) { if (sy < 0) - bitmap.pix16(y, x) = m_background_ram[0x3f] & 0xf; // TODO: find out exactly where the data is fetched from + bitmap.pix16(y, x) = m_background_ram[0] & 0xf; // TODO: find out exactly where the data is fetched from else { // TODO: confirm the memory layout @@ -449,7 +449,7 @@ void tpp1_state::draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect for (int x = cliprect.min_x; x <= cliprect.max_x; x++) { if (sy < 0) - bitmap.pix16(y, x) = m_background_ram[0x3f] & 0xf; // TODO: find out exactly where the data is fetched from + bitmap.pix16(y, x) = m_background_ram[0] & 0xf; // TODO: find out exactly where the data is fetched from else { // TODO: confirm the memory layout @@ -475,7 +475,7 @@ void tpp2_state::draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect for (int x = cliprect.min_x; x <= cliprect.max_x; x++) { if (sy < 0) - bitmap.pix16(y, x) = m_background_ram[0x3f] & 0xf; // TODO: find out exactly where the data is fetched from + bitmap.pix16(y, x) = m_background_ram[((sy & 0x100) / 8) * 0x40] & 0xf; else { // TODO: confirm the memory layout