aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/tizen
diff options
context:
space:
mode:
authorChris Warren-Smith2014-03-23 20:30:47 +1000
committerChris Warren-Smith2014-03-23 20:30:47 +1000
commit76a5580930b79007612d466c8d1e58e9b0263399 (patch)
treee91d37435bab97f2d0cbfb9620d7c3d504d5005c /backends/platform/tizen
parent3bcc3a6849bcf27a35790581bb4476f9ed2a4355 (diff)
downloadscummvm-rg350-76a5580930b79007612d466c8d1e58e9b0263399.tar.gz
scummvm-rg350-76a5580930b79007612d466c8d1e58e9b0263399.tar.bz2
scummvm-rg350-76a5580930b79007612d466c8d1e58e9b0263399.zip
TIZEN: fix compile errors
Diffstat (limited to 'backends/platform/tizen')
-rw-r--r--backends/platform/tizen/system.cpp4
-rw-r--r--backends/platform/tizen/system.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/tizen/system.cpp b/backends/platform/tizen/system.cpp
index 585eb206ea..a235456670 100644
--- a/backends/platform/tizen/system.cpp
+++ b/backends/platform/tizen/system.cpp
@@ -266,8 +266,8 @@ result TizenSystem::initModules() {
return E_OUT_OF_MEMORY;
}
- _graphicsManager = (GraphicsManager *)new TizenGraphicsManager(_appForm);
- if (!_graphicsManager || graphicsManager->Construct() != E_SUCCESS) {
+ _graphicsManager = new TizenGraphicsManager(_appForm);
+ if (!_graphicsManager || getGraphics()->Construct() != E_SUCCESS) {
return E_OUT_OF_MEMORY;
}
diff --git a/backends/platform/tizen/system.h b/backends/platform/tizen/system.h
index 1974055088..3f668baf34 100644
--- a/backends/platform/tizen/system.h
+++ b/backends/platform/tizen/system.h
@@ -73,7 +73,7 @@ public:
bool isClosing() { return _appForm->isClosing(); }
TizenGraphicsManager *getGraphics() {
- return (TizenGraphicsManager *)_graphicsManager;
+ return dynamic_cast<TizenGraphicsManager *>(_graphicsManager);
}
private: