update to newer overlay interface

svn-id: r36336
This commit is contained in:
Kostas Nakos 2009-02-14 18:59:46 +00:00
parent af900a2e14
commit 7acb4f01ac

View File

@ -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);