From 7acb4f01ac2111e70221867ae16d9959b7d0e953 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sat, 14 Feb 2009 18:59:46 +0000 Subject: update to newer overlay interface svn-id: r36336 --- backends/platform/wince/wince-sdl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- cgit v1.2.3