aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostas Nakos2009-02-14 18:59:46 +0000
committerKostas Nakos2009-02-14 18:59:46 +0000
commit7acb4f01ac2111e70221867ae16d9959b7d0e953 (patch)
tree198c88614e2527bcbca8ab2581421d1134cd71c1
parentaf900a2e14239f16f22e3e9d0526084f175a45de (diff)
downloadscummvm-rg350-7acb4f01ac2111e70221867ae16d9959b7d0e953.tar.gz
scummvm-rg350-7acb4f01ac2111e70221867ae16d9959b7d0e953.tar.bz2
scummvm-rg350-7acb4f01ac2111e70221867ae16d9959b7d0e953.zip
update to newer overlay interface
svn-id: r36336
-rw-r--r--backends/platform/wince/wince-sdl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
index 3142e1d67b..fb7285439e 100644
--- a/backends/platform/wince/wince-sdl.cpp
+++ b/backends/platform/wince/wince-sdl.cpp
@@ -1400,6 +1400,15 @@ bool OSystem_WINCE3::loadGFXMode() {
else
InitScalers(565);
initCEScaler();
+ _overlayFormat.bytesPerPixel = _hwscreen->format->BytesPerPixel;
+ _overlayFormat.rLoss = _hwscreen->format->Rloss;
+ _overlayFormat.gLoss = _hwscreen->format->Gloss;
+ _overlayFormat.bLoss = _hwscreen->format->Bloss;
+ _overlayFormat.aLoss = _hwscreen->format->Aloss;
+ _overlayFormat.rShift = _hwscreen->format->Rshift;
+ _overlayFormat.gShift = _hwscreen->format->Gshift;
+ _overlayFormat.bShift = _hwscreen->format->Bshift;
+ _overlayFormat.aShift = _hwscreen->format->Ashift;
// Need some extra bytes around when using 2xSaI
_tmpscreen = SDL_CreateRGBSurface(SDL_SWSURFACE, _videoMode.screenWidth + 3, _videoMode.screenHeight + 3, 16, _hwscreen->format->Rmask, _hwscreen->format->Gmask, _hwscreen->format->Bmask, _hwscreen->format->Amask);