summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ryan Holtz <ryan.holtz@arrowheadgs.com>2021-01-29 01:08:26 +0100
committer Ryan Holtz <ryan.holtz@arrowheadgs.com>2021-01-29 01:08:55 +0100
commita0fdfb242d58a64766421ddec27462399b1f4429 (patch)
tree2ac9b897b7eff2f57adc55cc336c9728074a2a65
parentc920b6db56ae3869eb295f6ca05a179a7a2b7ed6 (diff)
-itech32: Fixed graphics regressions introduced by incrementing pixel X by an unshifted value in the previous changes. [Ryan Holtz]
-rw-r--r--src/mame/video/itech32.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/itech32.cpp b/src/mame/video/itech32.cpp
index f724b7cf75c..f6554ee483a 100644
--- a/src/mame/video/itech32.cpp
+++ b/src/mame/video/itech32.cpp
@@ -559,13 +559,13 @@ void itech32_state::draw_raw_widthpix(u16 *base, u16 color)
if (xdststep > 0)
{
/* skip left pixels */
- for ( ; x < width && sx < m_scaled_clip_rect.min_x; x += xsrcstep, px++, sx += xdststep) ;
+ for ( ; px < width && sx < m_scaled_clip_rect.min_x; x += xsrcstep, px += 0x100, sx += xdststep) ;
/* compute the address */
dstoffs = compute_safe_address(sx >> 8, sy >> 8) - (sx >> 8);
/* render middle pixels */
- for ( ; px < width && sx < m_scaled_clip_rect.max_x; x += xsrcstep, px++, sx += xdststep)
+ for ( ; px < width && sx < m_scaled_clip_rect.max_x; x += xsrcstep, px += 0x100, sx += xdststep)
{
int pixel = src[(grom_base + row_base + (x >> 8)) % grom_length];
if (pixel != transparent_pen)
@@ -575,13 +575,13 @@ void itech32_state::draw_raw_widthpix(u16 *base, u16 color)
else
{
/* skip right pixels */
- for ( ; px < width && sx >= m_scaled_clip_rect.max_x; x += xsrcstep, px++, sx += xdststep) ;
+ for ( ; px < width && sx >= m_scaled_clip_rect.max_x; x += xsrcstep, px += 0x100, sx += xdststep) ;
/* compute the address */
dstoffs = compute_safe_address(sx >> 8, sy >> 8) - (sx >> 8);
/* render middle pixels */
- for ( ; px < width && sx >= m_scaled_clip_rect.min_x; x += xsrcstep, px++, sx += xdststep)
+ for ( ; px < width && sx >= m_scaled_clip_rect.min_x; x += xsrcstep, px += 0x100, sx += xdststep)
{
int pixel = src[(grom_base + row_base + (x >> 8)) % grom_length];
if (pixel != transparent_pen)
@@ -599,7 +599,7 @@ void itech32_state::draw_raw_widthpix(u16 *base, u16 color)
/* render all pixels */
sx = startx;
- for ( ; px < width && sx < m_scaled_clip_rect.max_x; x += xsrcstep, px++, sx += xdststep, ty += ystep)
+ for ( ; px < width && sx < m_scaled_clip_rect.max_x; x += xsrcstep, px += 0x100, sx += xdststep, ty += ystep)
if (m_scaled_clip_rect.contains(sx, ty))
{
int pixel = src[(grom_base + row_base + (x >> 8)) % grom_length];