More accurately describes what is going on with the hng64 linescroll data upload. (nw)

This commit is contained in:
Andrew Gardner 2015-10-06 18:04:25 +02:00
parent 9fa62ec860
commit a6ee879290

View File

@ -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();