From f75a1e7af1db4be56430765e19a5aee75284dd3e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Feb 2013 22:03:05 +0300 Subject: Improve font cache cleaning. Add missing font cache cleaning code. --- src/gui/gui.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 3a459b55f..3a5964924 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -296,15 +296,17 @@ void Gui::slowLogic() mMouseCursorAlpha = std::max(0.0f, mMouseCursorAlpha - 0.005f); } if (mGuiFont) - mGuiFont->slowLogic(); + mGuiFont->slowLogic(0); if (mInfoParticleFont) - mInfoParticleFont->slowLogic(); + mInfoParticleFont->slowLogic(1); if (mHelpFont) - mHelpFont->slowLogic(); + mHelpFont->slowLogic(2); if (mSecureFont) - mSecureFont->slowLogic(); + mSecureFont->slowLogic(3); if (boldFont) - boldFont->slowLogic(); + boldFont->slowLogic(4); + if (mNpcFont) + mNpcFont->slowLogic(5); BLOCK_END("Gui::slowLogic") } -- cgit v1.2.3-70-g09d2