aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/iphone/blit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/iphone/blit.cpp b/backends/platform/iphone/blit.cpp
index b1575dc16a..642bdf84fa 100644
--- a/backends/platform/iphone/blit.cpp
+++ b/backends/platform/iphone/blit.cpp
@@ -33,8 +33,8 @@ void blitLandscapeScreenRect16bpp(uint16 *dst, uint16 *src, int width, int heigh
*(dst++) = *src;
src += screenWidth;
}
- dst -= screenHeight + height - 0;
- src += 1 - (height - 0) * screenWidth;
+ dst -= screenHeight + height;
+ src += 1 - height * screenWidth;
}
}
@@ -45,7 +45,7 @@ void blitLandscapeScreenRect8bpp(uint16 *dst, byte *src, int width, int height,
*(dst++) = palette[*src];
src += screenWidth;
}
- dst -= screenHeight + height - 0;
- src += 1 - (height - 0) * screenWidth;
+ dst -= screenHeight + height;
+ src += 1 - height * screenWidth;
}
}