aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv/samsungtv.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-28 14:56:31 +0000
committerMax Horn2010-11-28 14:56:31 +0000
commit7760077cf530c35c969f9286145d9a36d0440d70 (patch)
tree34c67abbacefa26792ca77fc9f5360c77a34663d /backends/platform/samsungtv/samsungtv.cpp
parent284b49aabc54590e1444f06561a815c2a3c5de7e (diff)
parent74a53df11b51fa4956745c086b2e6351b8383568 (diff)
downloadscummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.tar.gz
scummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.tar.bz2
scummvm-rg350-7760077cf530c35c969f9286145d9a36d0440d70.zip
Merging the gsoc2010-opengl branch
svn-id: r54518
Diffstat (limited to 'backends/platform/samsungtv/samsungtv.cpp')
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp34
1 files changed, 26 insertions, 8 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp
index 909734d719..b007d1d594 100644
--- a/backends/platform/samsungtv/samsungtv.cpp
+++ b/backends/platform/samsungtv/samsungtv.cpp
@@ -24,19 +24,34 @@
*/
#include "backends/platform/samsungtv/samsungtv.h"
+#include "backends/events/samsungtvsdl/samsungtvsdl-events.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 == kFeatureAspectRatioCorrection) ||
- (f == kFeatureCursorHasPalette);
+ (f == OSystem::kFeatureAspectRatioCorrection) ||
+ (f == OSystem::kFeatureCursorHasPalette);
+}
+
+void OSystem_SDL_SamsungTV::initBackend() {
+ // Create the events manager
+ if (_eventManager == 0)
+ _eventManager = new SamsungTVSdlEventManager(this);
+
+ // Call parent implementation of this method
+ OSystem_SDL::initBackend();
}
void OSystem_SDL_SamsungTV::setFeatureState(Feature f, bool enable) {
switch (f) {
- case kFeatureAspectRatioCorrection:
- setAspectRatioCorrection(enable);
+ case OSystem::kFeatureAspectRatioCorrection:
+ _graphicsManager->setFeatureState(f, enable);
break;
default:
break;
@@ -44,11 +59,9 @@ void OSystem_SDL_SamsungTV::setFeatureState(Feature f, bool enable) {
}
bool OSystem_SDL_SamsungTV::getFeatureState(Feature f) {
- assert (_transactionMode == kTransactionNone);
-
switch (f) {
- case kFeatureAspectRatioCorrection:
- return _videoMode.aspectRatioCorrection;
+ case OSystem::kFeatureAspectRatioCorrection:
+ return _graphicsManager->getFeatureState(f);
default:
return false;
}
@@ -59,4 +72,9 @@ void OSystem_SDL_SamsungTV::fatalError() {
for (;;) {}
}
+void OSystem_SDL_SamsungTV::quit() {
+ // FIXME
+ deinit();
+}
+
#endif