summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-10-12 19:59:25 +0300
committerAndrei Karas <akaras@inbox.ru>2010-10-16 20:44:37 +0300
commit0d3d7c908ef6d294b14f55f09c9d83767fbc5f32 (patch)
tree35a175491e6d08cdbd79ab6c9de7e13560132236 /src/gui/gui.cpp
parentbdf409c9c4ce083881133879947cc0a6c2cce0f1 (diff)
downloadmana-client-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.gz
mana-client-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.bz2
mana-client-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.tar.xz
mana-client-0d3d7c908ef6d294b14f55f09c9d83767fbc5f32.zip
Implement opacity cache for SDL surfaces.
Enabled by default. Can be disabled in configuration option "alphaCache" if set it to 0. Reviewed-by: Bertram
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index df2ddadf..75f67435 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -160,6 +160,9 @@ Gui::~Gui()
void Gui::logic()
{
+ ResourceManager *resman = ResourceManager::getInstance();
+ resman->clearScheduled();
+
// Fade out mouse cursor after extended inactivity
if (mMouseInactivityTimer < 100 * 15)
{