aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv
diff options
context:
space:
mode:
authorPaweł Kołodziejski2009-11-18 10:14:30 +0000
committerPaweł Kołodziejski2009-11-18 10:14:30 +0000
commit424c5eea92ea9f272f6fee901725d528a060dd42 (patch)
tree0709dffcc377edfc913dfa3e131645f615e5e9ae /backends/platform/samsungtv
parentc4c30ca3ce75dcc2059284f3751f0f124aa6dbbd (diff)
downloadscummvm-rg350-424c5eea92ea9f272f6fee901725d528a060dd42.tar.gz
scummvm-rg350-424c5eea92ea9f272f6fee901725d528a060dd42.tar.bz2
scummvm-rg350-424c5eea92ea9f272f6fee901725d528a060dd42.zip
samsungtv: no need make surface conversion here any more, sdl do that with internal emulation
svn-id: r45971
Diffstat (limited to 'backends/platform/samsungtv')
-rw-r--r--backends/platform/samsungtv/graphics.cpp68
-rw-r--r--backends/platform/samsungtv/module.mk1
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp4
-rw-r--r--backends/platform/samsungtv/samsungtv.h10
4 files changed, 1 insertions, 82 deletions
diff --git a/backends/platform/samsungtv/graphics.cpp b/backends/platform/samsungtv/graphics.cpp
deleted file mode 100644
index a2b602be75..0000000000
--- a/backends/platform/samsungtv/graphics.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/backends/platform/sdl/graphics.cpp $
- * $Id: graphics.cpp 44495 2009-09-30 16:16:53Z fingolfin $
- *
- */
-
-#include "backends/platform/samsungtv/samsungtv.h"
-#include "common/mutex.h"
-#include "common/util.h"
-#include "common/list.h"
-#include "graphics/font.h"
-#include "graphics/fontman.h"
-#include "graphics/scaler.h"
-#include "graphics/surface.h"
-
-#if defined(SAMSUNGTV)
-
-bool OSystem_SDL_SamsungTV::loadGFXMode() {
- OSystem_SDL::loadGFXMode();
- _realhwscreen = SDL_SetVideoMode(_videoMode.hardwareWidth, _videoMode.hardwareHeight, 32, 0);
-
- return true;
-}
-
-void OSystem_SDL_SamsungTV::unloadGFXMode() {
- if (_realhwscreen) {
- SDL_FreeSurface(_realhwscreen);
- _realhwscreen = NULL;
- }
-
- OSystem_SDL::unloadGFXMode();
-}
-
-bool OSystem_SDL_SamsungTV::hotswapGFXMode() {
- if (!_screen)
- return false;
-
- SDL_FreeSurface(_realhwscreen); _realhwscreen = NULL;
-
- return OSystem_SDL::hotswapGFXMode();
-}
-
-void OSystem_SDL_SamsungTV::internUpdateScreen() {
- OSystem_SDL::internUpdateScreen();
- SDL_BlitSurface(_hwscreen, 0, _realhwscreen, 0);
- SDL_UpdateRect(_realhwscreen, 0, 0, 0, 0);
-}
-
-#endif
diff --git a/backends/platform/samsungtv/module.mk b/backends/platform/samsungtv/module.mk
index 5b713b2a15..27e2cfa77d 100644
--- a/backends/platform/samsungtv/module.mk
+++ b/backends/platform/samsungtv/module.mk
@@ -2,7 +2,6 @@ MODULE := backends/platform/samsungtv
MODULE_OBJS := \
events.o \
- graphics.o \
main.o \
samsungtv.o
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp
index 4bef9a2ec2..f330b6ee78 100644
--- a/backends/platform/samsungtv/samsungtv.cpp
+++ b/backends/platform/samsungtv/samsungtv.cpp
@@ -27,10 +27,6 @@
#if defined(SAMSUNGTV)
-OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV() : OSystem_SDL(),
- _realhwscreen(0) {
-}
-
bool OSystem_SDL_SamsungTV::hasFeature(Feature f) {
return
(f == kFeatureAspectRatioCorrection) ||
diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h
index ed1d59f711..e069e9e39f 100644
--- a/backends/platform/samsungtv/samsungtv.h
+++ b/backends/platform/samsungtv/samsungtv.h
@@ -39,7 +39,7 @@ namespace Audio {
class OSystem_SDL_SamsungTV : public OSystem_SDL {
public:
- OSystem_SDL_SamsungTV();
+// OSystem_SDL_SamsungTV() {}
virtual bool hasFeature(Feature f);
virtual void setFeatureState(Feature f, bool enable);
@@ -47,14 +47,6 @@ public:
protected:
- SDL_Surface *_realhwscreen;
-
- virtual void internUpdateScreen();
-
- virtual bool loadGFXMode();
- virtual void unloadGFXMode();
- virtual bool hotswapGFXMode();
-
virtual bool remapKey(SDL_Event &ev, Common::Event &event);
};