[Scummvm-cvs-logs] SF.net SVN: scummvm:[48728] scummvm/trunk/backends/platform/wii/osystem_gfx .cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Mon Apr 19 22:26:06 CEST 2010
Revision: 48728
http://scummvm.svn.sourceforge.net/scummvm/?rev=48728&view=rev
Author: dhewg
Date: 2010-04-19 20:26:06 +0000 (Mon, 19 Apr 2010)
Log Message:
-----------
Fix lockScreen() for 16bit modes.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wii/osystem_gfx.cpp
Modified: scummvm/trunk/backends/platform/wii/osystem_gfx.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem_gfx.cpp 2010-04-19 20:25:20 UTC (rev 48727)
+++ scummvm/trunk/backends/platform/wii/osystem_gfx.cpp 2010-04-19 20:26:06 UTC (rev 48728)
@@ -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