diff options
author | Chris Warren-Smith | 2014-03-23 20:30:47 +1000 |
---|---|---|
committer | Chris Warren-Smith | 2014-03-23 20:30:47 +1000 |
commit | 76a5580930b79007612d466c8d1e58e9b0263399 (patch) | |
tree | e91d37435bab97f2d0cbfb9620d7c3d504d5005c /backends/platform/tizen | |
parent | 3bcc3a6849bcf27a35790581bb4476f9ed2a4355 (diff) | |
download | scummvm-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.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: |