Ver código fonte

- fixed #934 (batte screen after changing resolution)

Ivan Savenko 13 anos atrás
pai
commit
fef876e1ec
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      client/Client.cpp

+ 2 - 2
client/Client.cpp

@@ -568,8 +568,8 @@ void CClient::battleStarted(const BattleInfo * info)
 	{
 	{
 		boost::unique_lock<boost::recursive_mutex> un(*LOCPLINT->pim);
 		boost::unique_lock<boost::recursive_mutex> un(*LOCPLINT->pim);
 		new CBattleInterface(info->belligerents[0], info->belligerents[1], info->heroes[0], info->heroes[1],
 		new CBattleInterface(info->belligerents[0], info->belligerents[1], info->heroes[0], info->heroes[1],
-			Rect((settings["video"]["gameRes"]["width"].Float()  - 800)/2, 
-			     (settings["video"]["gameRes"]["height"].Float() - 600)/2, 800, 600), att, def);
+			Rect((screen->w - 800)/2, 
+			     (screen->h - 600)/2, 800, 600), att, def);
 	}
 	}
 
 
 	if(vstd::contains(battleints,info->sides[0]))
 	if(vstd::contains(battleints,info->sides[0]))