[Scummvm-cvs-logs] SF.net SVN: scummvm:[48730] scummvm/branches/branch-1-1-0/backends/platform /wii/osystem_gfx.cpp

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Mon Apr 19 22:27:34 CEST 2010


Revision: 48730
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48730&view=rev
Author:   dhewg
Date:     2010-04-19 20:27:34 +0000 (Mon, 19 Apr 2010)

Log Message:
-----------
Backport of r48728: Fix lockScreen() for 16bit modes.

Modified Paths:
--------------
    scummvm/branches/branch-1-1-0/backends/platform/wii/osystem_gfx.cpp

Modified: scummvm/branches/branch-1-1-0/backends/platform/wii/osystem_gfx.cpp
===================================================================
--- scummvm/branches/branch-1-1-0/backends/platform/wii/osystem_gfx.cpp	2010-04-19 20:27:08 UTC (rev 48729)
+++ scummvm/branches/branch-1-1-0/backends/platform/wii/osystem_gfx.cpp	2010-04-19 20:27:34 UTC (rev 48730)
@@ -511,10 +511,11 @@
 	_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
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list