Browse Source

Improve performance of window redraws

Ivan Savenko 2 years ago
parent
commit
46461e5c33
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/windows/CWindowObject.cpp

+ 1 - 0
client/windows/CWindowObject.cpp

@@ -85,6 +85,7 @@ std::shared_ptr<CPicture> CWindowObject::createBg(std::string imageName, bool pl
 		return nullptr;
 
 	auto image = std::make_shared<CPicture>(imageName);
+	image->getSurface()->setBlitMode(EImageBlitMode::OPAQUE);
 	if(playerColored)
 		image->colorize(LOCPLINT->playerID);
 	return image;