diff options
author | Paweł Kołodziejski | 2009-11-12 20:44:37 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-11-12 20:44:37 +0000 |
commit | 06c73ee29f6bf361bba724992ca483f02db53173 (patch) | |
tree | f26853985ab5cff32f8ddc66ddad5221525dfe9f /backends/platform/samsungtv | |
parent | 67ce14622ad62e9ba874e45772bcbd46079c885d (diff) | |
download | scummvm-rg350-06c73ee29f6bf361bba724992ca483f02db53173.tar.gz scummvm-rg350-06c73ee29f6bf361bba724992ca483f02db53173.tar.bz2 scummvm-rg350-06c73ee29f6bf361bba724992ca483f02db53173.zip |
samsungtv: fix sdl surface type
svn-id: r45870
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r-- | backends/platform/samsungtv/graphics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/samsungtv/graphics.cpp b/backends/platform/samsungtv/graphics.cpp index 2e0947f934..e3bf3f2c9b 100644 --- a/backends/platform/samsungtv/graphics.cpp +++ b/backends/platform/samsungtv/graphics.cpp @@ -172,7 +172,9 @@ bool OSystem_SDL_SamsungTV::loadGFXMode() { fixupResolutionForAspectRatio(_videoMode.desiredAspectRatio, _videoMode.hardwareWidth, _videoMode.hardwareHeight); } - _hwscreen = SDL_SetVideoMode(_videoMode.hardwareWidth, _videoMode.hardwareHeight, 32, SDL_FULLSCREEN | SDL_SWSURFACE); + _hwscreen = SDL_SetVideoMode(_videoMode.hardwareWidth, _videoMode.hardwareHeight, 32, + _videoMode.fullscreen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE + ); if (_hwscreen == NULL) { // DON'T use error(), as this tries to bring up the debug @@ -243,7 +245,7 @@ bool OSystem_SDL_SamsungTV::loadGFXMode() { error("allocating _tmpscreen2 failed"); #ifdef USE_OSD - _osdSurface = SDL_CreateRGBSurface(SDL_HWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, + _osdSurface = SDL_CreateRGBSurface(SDL_SWSURFACE | SDL_RLEACCEL | SDL_SRCCOLORKEY | SDL_SRCALPHA, _hwscreen->w, _hwscreen->h, 32, |