aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-07 01:16:33 +0100
committerJohannes Schickel2012-01-07 01:16:33 +0100
commit1574d644e8e3d32d9bf9a05aefabb82f877e05cd (patch)
treeaac593711b8eb23e32b8d1f0e4f7e09b34347e0a /graphics/fontman.cpp
parent050b8e33604bb50d48a9a43f61c85baccb17ab1d (diff)
downloadscummvm-rg350-1574d644e8e3d32d9bf9a05aefabb82f877e05cd.tar.gz
scummvm-rg350-1574d644e8e3d32d9bf9a05aefabb82f877e05cd.tar.bz2
scummvm-rg350-1574d644e8e3d32d9bf9a05aefabb82f877e05cd.zip
GRAPHICS: Let FontManager::setFont accept an "const BdfFont *".
As the documentation points out this method currently only works for BDF fonts, thus it is safer to let it actually just accept such.
Diffstat (limited to 'graphics/fontman.cpp')
-rw-r--r--graphics/fontman.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp
index 9c7285ef2f..8d967d595f 100644
--- a/graphics/fontman.cpp
+++ b/graphics/fontman.cpp
@@ -93,19 +93,19 @@ bool FontManager::assignFontToName(const Common::String &name, const Font *font)
return true;
}
-bool FontManager::setFont(FontUsage usage, const Font *font) {
+bool FontManager::setFont(FontUsage usage, const BdfFont *font) {
switch (usage) {
case kConsoleFont:
delete g_consolefont;
- g_consolefont = (const BdfFont *)font;
+ g_consolefont = font;
break;
case kGUIFont:
delete g_sysfont;
- g_sysfont = (const BdfFont *)font;
+ g_sysfont = font;
break;
case kBigGUIFont:
delete g_sysfont_big;
- g_sysfont_big = (const BdfFont *)font;
+ g_sysfont_big = font;
break;
default:
return false;