diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-05 02:20:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-05 02:20:21 +0300 |
commit | aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4 (patch) | |
tree | 73e88418ca5f6fd4eae6bde715e52b96cd8ce502 /src/gui/gui.cpp | |
parent | 46106e962bee32271ee644224c5ac525eb32f888 (diff) | |
download | manaverse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.gz manaverse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.bz2 manaverse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.xz manaverse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.zip |
Add chat command to clean fonts cache.
New chat command: /cleanfonts
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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") |