diff options
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") |