Fix lockScreen() for 16bit modes.
svn-id: r48728
This commit is contained in:
parent
eb05f83a08
commit
e6b835bce4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue