diff options
author | Johannes Schickel | 2014-03-23 18:39:38 +0100 |
---|---|---|
committer | Johannes Schickel | 2014-03-23 18:39:38 +0100 |
commit | 40b085c905473a5549eb0edb204b5d5f53e53e7c (patch) | |
tree | 0163d26af0da720382dbacd01cf4582094855781 | |
parent | 6d6e9d34b49554d94568780737706e43fcdcda54 (diff) | |
parent | 76a5580930b79007612d466c8d1e58e9b0263399 (diff) | |
download | scummvm-rg350-40b085c905473a5549eb0edb204b5d5f53e53e7c.tar.gz scummvm-rg350-40b085c905473a5549eb0edb204b5d5f53e53e7c.tar.bz2 scummvm-rg350-40b085c905473a5549eb0edb204b5d5f53e53e7c.zip |
Merge pull request #451 from chrisws/branch-1-6-1
TIZEN: fix compile errors
-rw-r--r-- | backends/platform/tizen/system.cpp | 4 | ||||
-rw-r--r-- | backends/platform/tizen/system.h | 2 |
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: |