diff options
-rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 3 |
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 |