diff options
author | Paweł Kołodziejski | 2009-11-14 15:46:38 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-11-14 15:46:38 +0000 |
commit | ace686aa3f0143aec0445a4dfe1a039cb80ac900 (patch) | |
tree | cc63f7f667fc97a7e936038cd173eba72a8246c7 /backends/platform/sdl | |
parent | 1de89723fd07183a07a29e0d26efddf174529b1f (diff) | |
download | scummvm-rg350-ace686aa3f0143aec0445a4dfe1a039cb80ac900.tar.gz scummvm-rg350-ace686aa3f0143aec0445a4dfe1a039cb80ac900.tar.bz2 scummvm-rg350-ace686aa3f0143aec0445a4dfe1a039cb80ac900.zip |
samsungtv: continue reduction of code duplication
svn-id: r45900
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/graphics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 077a9d519c..a1334b416e 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -568,6 +568,11 @@ bool OSystem_SDL::loadGFXMode() { fixupResolutionForAspectRatio(_videoMode.desiredAspectRatio, _videoMode.hardwareWidth, _videoMode.hardwareHeight); } +#if defined(SAMSUNGTV) + _hwscreen = SDL_CreateRGBSurface(SDL_SWSURFACE, _videoMode.hardwareWidth, _videoMode.hardwareHeight, 16, 0, 0, 0, 0); + if (_hwscreen == NULL) + error("allocating _hwscreen failed"); +#else _hwscreen = SDL_SetVideoMode(_videoMode.hardwareWidth, _videoMode.hardwareHeight, 16, _videoMode.fullscreen ? (SDL_FULLSCREEN|SDL_SWSURFACE) : SDL_SWSURFACE ); @@ -582,6 +587,7 @@ bool OSystem_SDL::loadGFXMode() { return false; } } +#endif // // Create the surface used for the graphics in 16 bit before scaling, and also the overlay |