aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2005-01-06 21:15:52 +0000
committerMax Horn2005-01-06 21:15:52 +0000
commitc6e0d31e76134fbdd3a1626aad9ed3e38f25afb3 (patch)
tree913925590e558d57670e21479d4853e6bb15447c /backends
parentf3b7c27cbdeb7f1801fa5ed34d2aa0b65454b72f (diff)
downloadscummvm-rg350-c6e0d31e76134fbdd3a1626aad9ed3e38f25afb3.tar.gz
scummvm-rg350-c6e0d31e76134fbdd3a1626aad9ed3e38f25afb3.tar.bz2
scummvm-rg350-c6e0d31e76134fbdd3a1626aad9ed3e38f25afb3.zip
Added a font manager (work in progress)
svn-id: r16460
Diffstat (limited to 'backends')
-rw-r--r--backends/sdl/graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sdl/graphics.cpp b/backends/sdl/graphics.cpp
index f081acfc75..daa9906594 100644
--- a/backends/sdl/graphics.cpp
+++ b/backends/sdl/graphics.cpp
@@ -24,6 +24,7 @@
#include "common/scaler.h"
#include "common/util.h"
#include "graphics/font.h"
+#include "graphics/fontman.h"
static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{"1x", "Normal (no scaling)", GFX_NORMAL},
@@ -1234,8 +1235,7 @@ void OSystem_SDL::displayMessageOnOSD(const char *msg) {
dst.bytesPerPixel = _osdSurface->format->BytesPerPixel;
// The font we are going to use:
-// const Graphics::Font *font = &Graphics::g_sysfont;
- const Graphics::Font *font = &Graphics::g_scummfont;
+ const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kOSDFont);
// Clear everything with the "transparent" color, i.e. the colorkey
SDL_FillRect(_osdSurface, 0, kOSDColorKey);