diff options
author | Chris Warren-Smith | 2011-08-07 21:33:32 +1000 |
---|---|---|
committer | Chris Warren-Smith | 2011-08-21 16:37:06 +1000 |
commit | 59739a7a0e3e4826ba7b27d5270a8d7a26b787ef (patch) | |
tree | dcf98438157963eabd0ca4499b7794548b08f5fa /backends/graphics/opengl/opengl-graphics.cpp | |
parent | f705a9b2865a3379b3423c7cc929086eee17a4f1 (diff) | |
download | scummvm-rg350-59739a7a0e3e4826ba7b27d5270a8d7a26b787ef.tar.gz scummvm-rg350-59739a7a0e3e4826ba7b27d5270a8d7a26b787ef.tar.bz2 scummvm-rg350-59739a7a0e3e4826ba7b27d5270a8d7a26b787ef.zip |
BADA: Initial BADA port implementation
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 40ef17e477..d80ac8050e 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -1348,9 +1348,13 @@ const char *OpenGLGraphicsManager::getCurrentModeName() { } #ifdef USE_OSD +const Graphics::Font* getFontOSD() { + return FontMan.getFontByUsage(Graphics::FontManager::kLocalizedFont); +} + void OpenGLGraphicsManager::updateOSD() { // The font we are going to use: - const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kLocalizedFont); + const Graphics::Font *font = getFontOSD(); if (_osdSurface.w != _osdTexture->getWidth() || _osdSurface.h != _osdTexture->getHeight()) _osdSurface.create(_osdTexture->getWidth(), _osdTexture->getHeight(), _overlayFormat); |