diff options
author | Johannes Schickel | 2015-12-11 19:23:41 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-12-12 22:31:35 +0100 |
commit | fe2ee9ecf5709d49279265f0e5d3b2d0a5688265 (patch) | |
tree | ac75a57549c0dd0d5020a423b2e8b03505f7d15f /backends/platform/tizen | |
parent | 3232050dfc3283501b33881c762a5e9b188cf985 (diff) | |
download | scummvm-rg350-fe2ee9ecf5709d49279265f0e5d3b2d0a5688265.tar.gz scummvm-rg350-fe2ee9ecf5709d49279265f0e5d3b2d0a5688265.tar.bz2 scummvm-rg350-fe2ee9ecf5709d49279265f0e5d3b2d0a5688265.zip |
OPENGL: Refactor screen refresh handling.
Subclasses of OpenGLGraphicsManager are now supposed to supply a refreshScreen
function which handles actual screen updating (for example, buffer swapping).
Diffstat (limited to 'backends/platform/tizen')
-rw-r--r-- | backends/platform/tizen/graphics.cpp | 5 | ||||
-rw-r--r-- | backends/platform/tizen/graphics.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/backends/platform/tizen/graphics.cpp b/backends/platform/tizen/graphics.cpp index 9b23e3fe78..759c4e519d 100644 --- a/backends/platform/tizen/graphics.cpp +++ b/backends/platform/tizen/graphics.cpp @@ -127,7 +127,6 @@ void TizenGraphicsManager::setReady() { void TizenGraphicsManager::updateScreen() { if (!_initState) { OpenGLGraphicsManager::updateScreen(); - eglSwapBuffers(_eglDisplay, _eglSurface); } } @@ -203,3 +202,7 @@ bool TizenGraphicsManager::loadVideoMode(uint requestedWidth, uint requestedHeig // using a fixed output size we do nothing like that here. return true; } + +void TizenGraphicsManager::refreshScreen() { + eglSwapBuffers(_eglDisplay, _eglSurface); +} diff --git a/backends/platform/tizen/graphics.h b/backends/platform/tizen/graphics.h index f1d4498650..1522d66bbe 100644 --- a/backends/platform/tizen/graphics.h +++ b/backends/platform/tizen/graphics.h @@ -61,6 +61,8 @@ protected: bool loadVideoMode(uint requestedWidth, uint requestedHeight, const Graphics::PixelFormat &format); + void refreshScreen(); + const Graphics::Font *getFontOSD(); private: |