From e6b835bce449ea6dba2a23feef6de627c318bdf3 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 19 Apr 2010 20:26:06 +0000 Subject: Fix lockScreen() for 16bit modes. svn-id: r48728 --- backends/platform/wii/osystem_gfx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends/platform') 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 -- cgit v1.2.3