BACKEND: Fix fullscreen for AmigaOS4 in Software-mode

This commit is contained in:
Einar Johan Trøan Sømåen 2013-10-30 07:02:25 +01:00
parent dd37ce2054
commit 9a3c3724f3

View File

@ -196,7 +196,15 @@ Graphics::PixelBuffer SurfaceSdlGraphicsManager::setupScreen(int screenW, int sc
#endif
{
bpp = 16;
sdlflags = SDL_HWSURFACE;
#ifdef __amigaos4__
sdlflags = SDL_SWSURFACE;
// ResidualVM requires direct access to the SDL_surface's pixel data,
// but with AmigaOS4 hardware surfaces you can only do that if the
// P96 bitmap is locked. So we replace SDL_HWSURFACE with SDL_SWSURFACE.
// https://code.google.com/p/os4sdl/source/browse/trunk/src/video/amigaos4/SDL_os4surface.c
#else
sdlflags = SDL_HWSURFACE;
#endif
}
if (_fullscreen)