mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
BACKEND: Fix fullscreen for AmigaOS4 in Software-mode
This commit is contained in:
parent
dd37ce2054
commit
9a3c3724f3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user