aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.h
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.h
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.h')
-rw-r--r--graphics/fontman.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/fontman.h b/graphics/fontman.h
index e229860f24..42f7d856fa 100644
--- a/graphics/fontman.h
+++ b/graphics/fontman.h
@@ -32,6 +32,7 @@
namespace Graphics {
class Font;
+class BdfFont;
class FontManager : public Common::Singleton<FontManager> {
public:
@@ -75,7 +76,7 @@ public:
* @param font the font object
* @return true on success, false on failure
*/
- bool setFont(FontUsage usage, const Font *font);
+ bool setFont(FontUsage usage, const BdfFont *font);
/**
* Removes binding from name to font