From acf69fd277e17c6bdf001551697d7321f84909df Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 13 Oct 2005 10:26:11 +0000 Subject: Use gcn::Font instead of gcn::ImageFont as pointer type. --- src/gui/browserbox.cpp | 2 +- src/gui/gui.cpp | 8 ++++---- src/gui/gui.h | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/gui') diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index a4d418e0..d89c3d86 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -62,7 +62,7 @@ BrowserBox::BrowserBox(unsigned int mode): } else #endif { - browserFont = gui->getFont(); + browserFont = (gcn::ImageFont*)gui->getFont(); } } diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 60a1e0da..bf35e3ec 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -60,11 +60,11 @@ Gui *gui; gcn::SDLInput *guiInput; // GUI input // Fonts used in showing hits -gcn::ImageFont *hitRedFont; -gcn::ImageFont *hitBlueFont; -gcn::ImageFont *hitYellowFont; +gcn::Font *hitRedFont; +gcn::Font *hitBlueFont; +gcn::Font *hitYellowFont; // Font used to display speech and player names -gcn::ImageFont *speechFont; +gcn::Font *speechFont; class GuiConfigListener : public ConfigListener { diff --git a/src/gui/gui.h b/src/gui/gui.h index 1c1d5f8c..238ee38e 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -82,7 +82,7 @@ class Gui : public gcn::Gui, public gcn::MouseListener /** * Return game font */ - gcn::ImageFont* + gcn::Font* getFont() { return mGuiFont; } /** @@ -101,7 +101,7 @@ class Gui : public gcn::Gui, public gcn::MouseListener GuiConfigListener *mConfigListener; gcn::ImageLoader *mHostImageLoader; /**< For loading images in GL */ gcn::ImageLoader *mImageLoader; /**< For loading images */ - gcn::ImageFont *mGuiFont; /**< The global GUI font */ + gcn::Font *mGuiFont; /**< The global GUI font */ Image *mMouseCursor; /**< Mouse cursor image */ bool mCustomCursor; /**< Show custom cursor */ }; @@ -112,12 +112,12 @@ extern gcn::SDLInput *guiInput; /**< GUI input */ /** * Fonts used in showing hits */ -extern gcn::ImageFont *hitRedFont; -extern gcn::ImageFont *hitBlueFont; -extern gcn::ImageFont *hitYellowFont; +extern gcn::Font *hitRedFont; +extern gcn::Font *hitBlueFont; +extern gcn::Font *hitYellowFont; /** * Font used to display speech and player names */ -extern gcn::ImageFont *speechFont; +extern gcn::Font *speechFont; #endif -- cgit v1.2.3-70-g09d2