diff options
author | Johannes Schickel | 2012-06-20 17:18:19 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-20 17:18:19 +0200 |
commit | 4b32d5de0e83551e18e23a5be575d24585f1d91d (patch) | |
tree | 3724fced94cd40a6b0c1c65c107a4ac8b9f6453d | |
parent | 6792f4450b13c1f62acf37673d03f390dfce4e3c (diff) | |
download | scummvm-rg350-4b32d5de0e83551e18e23a5be575d24585f1d91d.tar.gz scummvm-rg350-4b32d5de0e83551e18e23a5be575d24585f1d91d.tar.bz2 scummvm-rg350-4b32d5de0e83551e18e23a5be575d24585f1d91d.zip |
WII: Fix check for whole width updates in copyRectToOverlay.
-rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp index 6fbf51a8d1..90e4d98c6b 100644 --- a/backends/platform/wii/osystem_gfx.cpp +++ b/backends/platform/wii/osystem_gfx.cpp @@ -608,8 +608,8 @@ void OSystem_Wii::copyRectToOverlay(const void *buf, int pitch, int x, return; uint16 *dst = _overlayPixels + (y * _overlayWidth + x); - if (_overlayWidth == pitch && pitch == w) { - memcpy(dst, src, h * w * sizeof(uint16)); + if (_overlayWidth == w && pitch == _overlayWidth * sizeof(uint16)) { + memcpy(dst, src, h * pitch); } else { do { memcpy(dst, src, w * sizeof(uint16)); |