aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorOystein Eftevaag2009-03-01 09:47:19 +0000
committerOystein Eftevaag2009-03-01 09:47:19 +0000
commit741d8b36fe473e995c066329a38c4601fbabb111 (patch)
tree31cb2c6ad1b7edf63a92f6dc39d0ae2b6572b98b /backends/platform
parentc9d440bf5b8309ca143d9592af10d73765103098 (diff)
downloadscummvm-rg350-741d8b36fe473e995c066329a38c4601fbabb111.tar.gz
scummvm-rg350-741d8b36fe473e995c066329a38c4601fbabb111.tar.bz2
scummvm-rg350-741d8b36fe473e995c066329a38c4601fbabb111.zip
Cleaned out some unneeded stuff from the C blitting routines
svn-id: r39025
Diffstat (limited to 'backends/platform')
-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;
}
}