summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-28 15:41:40 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-10-28 15:41:40 +0000
commit0bd8852546e9afbe819f0c60c333a8bcb6a7418d (patch)
tree71341be4c0c9db24dbc0b3657a567b7897d963d0 /src/main.cpp
parent95cdf6401191b9d44647700f00503889929e3a4b (diff)
downloadmana-client-0bd8852546e9afbe819f0c60c333a8bcb6a7418d.tar.gz
mana-client-0bd8852546e9afbe819f0c60c333a8bcb6a7418d.tar.bz2
mana-client-0bd8852546e9afbe819f0c60c333a8bcb6a7418d.tar.xz
mana-client-0bd8852546e9afbe819f0c60c333a8bcb6a7418d.zip
Reload wallpaper after updates are done.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 08fc7a56..82620c05 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -607,6 +607,10 @@ int main(int argc, char *argv[])
{
case UPDATE_STATE:
loadUpdates();
+ // Reload the wallpaper in case that it was updated
+ login_wallpaper->decRef();
+ login_wallpaper = ResourceManager::getInstance()->
+ getImage("graphics/images/login_wallpaper.png");
break;
// Those states don't cause a network disconnect