summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar David Haywood <28625134+DavidHaywood@users.noreply.github.com>2017-12-13 23:28:42 +0000
committerGravatarGravatar David Haywood <28625134+DavidHaywood@users.noreply.github.com>2017-12-13 23:28:42 +0000
commit3af3f197475ee8b77e35be93e8b79aeb22514bfb (patch) (github)
treed7aa417b1bc5ca097aed88c69c34f3d6ee3c2b5c
parent1a1779ca3b245105fb3570a4cce0b3a8985f7915 (diff)
downloadmame-3af3f197475ee8b77e35be93e8b79aeb22514bfb.zip
mame-3af3f197475ee8b77e35be93e8b79aeb22514bfb.tar.bz2
pgm2: fix bug in yzoom code causing hang (nw)
-rw-r--r--src/mame/video/pgm2.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/video/pgm2.cpp b/src/mame/video/pgm2.cpp
index 1e52296232..8f416b469c 100644
--- a/src/mame/video/pgm2.cpp
+++ b/src/mame/video/pgm2.cpp
@@ -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++;
}
}
}