aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv/samsungtv.cpp
diff options
context:
space:
mode:
authorPawel Kolodziejski2011-05-23 18:11:40 +0200
committerPawel Kolodziejski2011-05-23 18:11:40 +0200
commit944e0be209f5ab47c3b903f258d2d41b990d80cb (patch)
tree465583c4769981179de1b94da62d21bb99b855b3 /backends/platform/samsungtv/samsungtv.cpp
parent76b8afc33607718da0955b6bd782dab15ef049dd (diff)
downloadscummvm-rg350-944e0be209f5ab47c3b903f258d2d41b990d80cb.tar.gz
scummvm-rg350-944e0be209f5ab47c3b903f258d2d41b990d80cb.tar.bz2
scummvm-rg350-944e0be209f5ab47c3b903f258d2d41b990d80cb.zip
SAMSUNGTV: update port
Diffstat (limited to 'backends/platform/samsungtv/samsungtv.cpp')
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp36
1 files changed, 13 insertions, 23 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp
index 2cc520e6fa..cb657a0a22 100644
--- a/backends/platform/samsungtv/samsungtv.cpp
+++ b/backends/platform/samsungtv/samsungtv.cpp
@@ -22,18 +22,13 @@
#include "backends/platform/samsungtv/samsungtv.h"
#include "backends/events/samsungtvsdl/samsungtvsdl-events.h"
+#include "backends/graphics/samsungtvsdl/samsungtvsdl-graphics.h"
#if defined(SAMSUNGTV)
OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV()
:
- OSystem_POSIX("/dtv/usb/sda1/.scummvmrc") {
-}
-
-bool OSystem_SDL_SamsungTV::hasFeature(Feature f) {
- return
- (f == OSystem::kFeatureAspectRatioCorrection) ||
- (f == OSystem::kFeatureCursorHasPalette);
+ OSystem_POSIX("/mtd_rwarea/scummvm/.scummvmrc") {
}
void OSystem_SDL_SamsungTV::initBackend() {
@@ -41,27 +36,22 @@ void OSystem_SDL_SamsungTV::initBackend() {
if (_eventSource == 0)
_eventSource = new SamsungTVSdlEventSource();
+ if (_graphicsManager == 0)
+ _graphicsManager = new SamsungTVSdlGraphicsManager(_eventSource);
+
// Call parent implementation of this method
- OSystem_SDL::initBackend();
+ OSystem_POSIX::initBackend();
}
-void OSystem_SDL_SamsungTV::setFeatureState(Feature f, bool enable) {
- switch (f) {
- case OSystem::kFeatureAspectRatioCorrection:
- _graphicsManager->setFeatureState(f, enable);
- break;
- default:
- break;
- }
+void OSystem_SDL_SamsungTV::quit() {
+ delete this;
}
-bool OSystem_SDL_SamsungTV::getFeatureState(Feature f) {
- switch (f) {
- case OSystem::kFeatureAspectRatioCorrection:
- return _graphicsManager->getFeatureState(f);
- default:
- return false;
- }
+void OSystem_SDL_SamsungTV::fatalError() {
+ delete this;
+ // FIXME
+ warning("fatal error");
+ for (;;) {}
}
#endif