From 12e311bd5261078e02bffe63e125f89ae1a57209 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 May 2012 17:52:35 +0300 Subject: Move some code from logic queue to separate calls. It can improve perfomance in slow systems. --- src/gui/gui.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/gui/gui.h') diff --git a/src/gui/gui.h b/src/gui/gui.h index 33940ba5e..59a832e8b 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -30,6 +30,7 @@ class Graphics; class GuiConfigListener; class ImageSet; +class SDLFont; class SDLInput; /** @@ -64,6 +65,8 @@ class Gui : public gcn::Gui */ void logic(); + void slowLogic(); + /** * Draws the whole Gui by calling draw functions down in the * Gui hierarchy. It also draws the mouse pointer. @@ -81,26 +84,26 @@ class Gui : public gcn::Gui /** * Return game font. */ - gcn::Font *getFont() const + SDLFont *getFont() const { return mGuiFont; } /** * Return help font. */ - gcn::Font *getHelpFont() const + SDLFont *getHelpFont() const { return mHelpFont; } /** * Return secure font. */ - gcn::Font *getSecureFont() const + SDLFont *getSecureFont() const { return mSecureFont; } /** * Return the Font used for "Info Particles", i.e. ones showing, what * you picked up, etc. */ - gcn::Font *getInfoParticleFont() const + SDLFont *getInfoParticleFont() const { return mInfoParticleFont; } /** @@ -147,10 +150,10 @@ class Gui : public gcn::Gui private: GuiConfigListener *mConfigListener; - gcn::Font *mGuiFont; /**< The global GUI font */ - gcn::Font *mInfoParticleFont; /**< Font for Info Particles*/ - gcn::Font *mHelpFont; /**< Font for Help Window*/ - gcn::Font *mSecureFont; /**< Font for secure labels*/ + SDLFont *mGuiFont; /**< The global GUI font */ + SDLFont *mInfoParticleFont; /**< Font for Info Particles*/ + SDLFont *mHelpFont; /**< Font for Help Window*/ + SDLFont *mSecureFont; /**< Font for secure labels*/ bool mCustomCursor; /**< Show custom cursor */ ImageSet *mMouseCursors; /**< Mouse cursor images */ float mMouseCursorAlpha; @@ -164,6 +167,6 @@ extern SDLInput *guiInput; /**< GUI input */ /** * Bolded text font */ -extern gcn::Font *boldFont; +extern SDLFont *boldFont; #endif // GUI_H -- cgit v1.2.3-60-g2f50