mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	fixes graphical glitch when there is no savegame
This commit is contained in:
		| @@ -10,9 +10,11 @@ | ||||
|  | ||||
| #include "StdInc.h" | ||||
| #include "ExtraOptionsTab.h" | ||||
| #include "../widgets/Images.h" | ||||
|  | ||||
| ExtraOptionsTab::ExtraOptionsTab() | ||||
| 	: OptionsTabBase(JsonPath::builtin("config/widgets/extraOptionsTab.json")) | ||||
| { | ||||
|  | ||||
| 	if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw")) | ||||
| 		textureCampaignOverdraw->disable(); | ||||
| } | ||||
|   | ||||
| @@ -428,8 +428,5 @@ void OptionsTabBase::recreate(bool campaign) | ||||
| 	} | ||||
|  | ||||
| 	if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw")) | ||||
| 	{ | ||||
| 		if(!campaign) | ||||
| 			textureCampaignOverdraw->disable(); | ||||
| 	} | ||||
| 		textureCampaignOverdraw->setEnabled(campaign); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user