diff options
author | Johannes Schickel | 2013-08-06 03:29:16 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-06 03:29:16 +0200 |
commit | 0f050fe797f2f7d0b5da65f443142c0ffdd006ce (patch) | |
tree | 4d99515e3b27b1b6a7f6697e16a8b2ed80ff2c63 /backends/platform/wii | |
parent | a96a427fc84312f7cb7fef45b992a1e9e3f93f93 (diff) | |
download | scummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.tar.gz scummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.tar.bz2 scummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.zip |
WII: Do not access Surface::pixels directly.
Diffstat (limited to 'backends/platform/wii')
-rw-r--r-- | backends/platform/wii/osystem_gfx.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp index a9bcdbb8d1..92c890b0a9 100644 --- a/backends/platform/wii/osystem_gfx.cpp +++ b/backends/platform/wii/osystem_gfx.cpp @@ -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; } |