aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider2010-04-19 20:26:06 +0000
committerAndre Heider2010-04-19 20:26:06 +0000
commite6b835bce449ea6dba2a23feef6de627c318bdf3 (patch)
treef9b29dd8fba21578760f2cdb9ec3aad7db487df6
parenteb05f83a08b4b0acc9dee662eca36540b25a369c (diff)
downloadscummvm-rg350-e6b835bce449ea6dba2a23feef6de627c318bdf3.tar.gz
scummvm-rg350-e6b835bce449ea6dba2a23feef6de627c318bdf3.tar.bz2
scummvm-rg350-e6b835bce449ea6dba2a23feef6de627c318bdf3.zip
Fix lockScreen() for 16bit modes.
svn-id: r48728
-rw-r--r--backends/platform/wii/osystem_gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp
index a1fce7f2e9..8381e4b9c1 100644
--- a/backends/platform/wii/osystem_gfx.cpp
+++ b/backends/platform/wii/osystem_gfx.cpp
@@ -511,10 +511,11 @@ Graphics::Surface *OSystem_Wii::lockScreen() {
_surface.pixels = _gamePixels;
_surface.w = _gameWidth;
_surface.h = _gameHeight;
- _surface.pitch = _gameWidth;
#ifdef USE_RGB_COLOR
+ _surface.pitch = _gameWidth * _pfGame.bytesPerPixel;
_surface.bytesPerPixel = _pfGame.bytesPerPixel;
#else
+ _surface.pitch = _gameWidth;
_surface.bytesPerPixel = 1;
#endif