diff options
author | David Haywood <28625134+DavidHaywood@users.noreply.github.com> | 2017-11-16 15:57:39 +0000 |
---|---|---|
committer | David Haywood <28625134+DavidHaywood@users.noreply.github.com> | 2017-11-16 15:57:39 +0000 |
commit | 189384e261df6f8153aef04bcb02d6d6151f7628 (patch) | |
tree | 9665bb1d824566cdce54ad4d496103d589baeaff | |
parent | 46e93b851ce7da700ee3efd11fa869d9d445c621 (diff) |
broke when refactoring (nw)
-rw-r--r-- | src/mame/drivers/pgm2.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mame/drivers/pgm2.cpp b/src/mame/drivers/pgm2.cpp index e25241671f3..321c79ed237 100644 --- a/src/mame/drivers/pgm2.cpp +++ b/src/mame/drivers/pgm2.cpp @@ -512,16 +512,14 @@ inline void pgm2_state::draw_sprite_chunk(const rectangle &cliprect, int &palett { if (pix) { - if (xzoombit) - { - draw_sprite_pixel(cliprect, palette_offset, x + realxdraw, realy, pal); - palette_offset++; - palette_offset &= 0x7ffffff; - } - + if (xzoombit) draw_sprite_pixel(cliprect, palette_offset, x + realxdraw, realy, pal); + + palette_offset++; + palette_offset &= 0x7ffffff; } - if (xzoombit) realxdraw++; + if (xzoombit) + realxdraw++; } } } |