summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Andrew Gardner <andrew.gardner@liu.se>2015-10-06 18:04:25 +0200
committer Andrew Gardner <andrew.gardner@liu.se>2015-10-08 12:12:48 +0200
commita6ee879290b51dcd66e99e84099738740e63543d (patch)
treea879dc0cec7fe58c78ea0d68786c3138eb964ebf
parent9fa62ec8605bcba29ca2f2fff333e15c43abe805 (diff)
More accurately describes what is going on with the hng64 linescroll data upload. (nw)
-rw-r--r--src/mame/video/hng64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c
index eef29a4e478..939f5a42ab5 100644
--- a/src/mame/video/hng64.c
+++ b/src/mame/video/hng64.c
@@ -697,7 +697,7 @@ void hng64_state::hng64_drawtilemap(screen_device &screen, bitmap_rgb32 &bitmap,
// See how many lines we have in the data region
// TODO: Change this to a loop that goes over each line and draws them - it's just for visualization now
int lineCount = 0;
- for (int ii = 0; ii < 0x2000/4; ii += 2)
+ for (int ii = 0; ii < 0x2000/4; ii += 4)
{
const int realAddress = dataAddress/4;
if (m_videoram[realAddress+ii] == 0xffffff00 && m_videoram[realAddress+ii+1] == 0xffffff00)
@@ -709,9 +709,9 @@ void hng64_state::hng64_drawtilemap(screen_device &screen, bitmap_rgb32 &bitmap,
}
//printf("lines %d\n", lineCount);
- // Fatfurwa writes twice as many lines as needed. Odd.
- if (m_mcu_type == FIGHT_MCU)
- lineCount /= 2;
+ // Buriki uses a 2x mosaic effect on its floor, so its line count is half
+ if (m_mcu_type == BURIKI_MCU)
+ lineCount *= 2;
// DEBUG - draw a horizontal green line where the uppermost line of the floor is drawn
const rectangle &visarea = screen.visible_area();