Skip to content

Commit

Permalink
WII: Do not access Surface::pixels directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Aug 6, 2013
1 parent a96a427 commit 0f050fe
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions backends/platform/wii/osystem_gfx.cpp
Expand Up @@ -528,16 +528,13 @@ void OSystem_Wii::updateScreen() {
}

Graphics::Surface *OSystem_Wii::lockScreen() {
_surface.pixels = _gamePixels;
_surface.w = _gameWidth;
_surface.h = _gameHeight;
_surface.init(_gameWidth, _gameHeight,
#ifdef USE_RGB_COLOR
_surface.pitch = _gameWidth * _pfGame.bytesPerPixel;
_surface.format = _pfGame;
_gameWidth * _pfGame.bytesPerPixel, _gamePixels, _pfGame
#else
_surface.pitch = _gameWidth;
_surface.format = Graphics::PixelFormat::createFormatCLUT8();
_gameWidth, _gamePixels, Graphics::PixelFormat::createFormatCLUT8()
#endif
);

return &_surface;
}
Expand Down

0 comments on commit 0f050fe

Please sign in to comment.