aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-06 03:29:16 +0200
committerJohannes Schickel2013-08-06 03:29:16 +0200
commit0f050fe797f2f7d0b5da65f443142c0ffdd006ce (patch)
tree4d99515e3b27b1b6a7f6697e16a8b2ed80ff2c63 /backends
parenta96a427fc84312f7cb7fef45b992a1e9e3f93f93 (diff)
downloadscummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.tar.gz
scummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.tar.bz2
scummvm-rg350-0f050fe797f2f7d0b5da65f443142c0ffdd006ce.zip
WII: Do not access Surface::pixels directly.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/wii/osystem_gfx.cpp11
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;
}