From aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Mar 2013 02:20:21 +0300 Subject: Add chat command to clean fonts cache. New chat command: /cleanfonts --- src/gui/gui.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 205bdff5a..a6e222183 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -310,6 +310,22 @@ void Gui::slowLogic() BLOCK_END("Gui::slowLogic") } +void Gui::clearFonts() +{ + if (mGuiFont) + mGuiFont->clear(); + if (mInfoParticleFont) + mInfoParticleFont->clear(); + if (mHelpFont) + mHelpFont->clear(); + if (mSecureFont) + mSecureFont->clear(); + if (boldFont) + boldFont->clear(); + if (mNpcFont) + mNpcFont->clear(); +} + bool Gui::handleInput() { BLOCK_START("Gui::handleInput") -- cgit v1.2.3-70-g09d2