aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii/osystem_gfx.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 21:14:19 +0200
committerJohannes Schickel2011-04-17 21:14:19 +0200
commit877004dbdd967d2f57d494b1aaa1cb55aae0fd52 (patch)
treefe3630f18560b876300c42d50b2993b7b8da32da /backends/platform/wii/osystem_gfx.cpp
parent3fd919060ca6bbf896680f3548bfaac020900d42 (diff)
downloadscummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.gz
scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.tar.bz2
scummvm-rg350-877004dbdd967d2f57d494b1aaa1cb55aae0fd52.zip
BACKENDS: Adapt various backends code to set up Surface::format correctly.
Note that this change is not tested at all (not even compile wise!).
Diffstat (limited to 'backends/platform/wii/osystem_gfx.cpp')
-rw-r--r--backends/platform/wii/osystem_gfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp
index cb9a8c72e9..05952591a6 100644
--- a/backends/platform/wii/osystem_gfx.cpp
+++ b/backends/platform/wii/osystem_gfx.cpp
@@ -538,9 +538,11 @@ Graphics::Surface *OSystem_Wii::lockScreen() {
#ifdef USE_RGB_COLOR
_surface.pitch = _gameWidth * _pfGame.bytesPerPixel;
_surface.bytesPerPixel = _pfGame.bytesPerPixel;
+ _surface.format = _pfGame;
#else
_surface.pitch = _gameWidth;
_surface.bytesPerPixel = 1;
+ _surface.format = Graphics::PixelFormat::createFormatCLUT8();
#endif
return &_surface;