pgm2: fix bug in yzoom code causing hang (nw)

This commit is contained in:
David Haywood 2017-12-13 23:28:42 +00:00
parent 1a1779ca3b
commit 3af3f19747

View File

@ -216,12 +216,15 @@ void pgm2_state::draw_sprites(screen_device &screen, const rectangle &cliprect,
draw_sprite_line(cliprect, mask_offset, palette_offset, x, realy, flipx, reverse, sizex, pal, 1, zoomx_bits, growx);
realy++;
if (zoomy_bit)
if (zoomy_bit) // draw it again
{
palette_offset = pre_palette_offset;
mask_offset = pre_mask_offset;
draw_sprite_line(cliprect, mask_offset, palette_offset, x, realy, flipx, reverse, sizex, pal, 1, zoomx_bits, growx);
realy++;
}
else ydraw++;
ydraw++;
}
}
}