Bläddra i källkod

Do not show selection highlight on creature preview images

Ivan Savenko 11 månader sedan
förälder
incheckning
91940dbfc6
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      client/widgets/Images.cpp

+ 2 - 0
client/widgets/Images.cpp

@@ -20,6 +20,7 @@
 #include "../render/CAnimation.h"
 #include "../render/CAnimation.h"
 #include "../render/Canvas.h"
 #include "../render/Canvas.h"
 #include "../render/ColorFilter.h"
 #include "../render/ColorFilter.h"
+#include "../render/Colors.h"
 
 
 #include "../battle/BattleInterface.h"
 #include "../battle/BattleInterface.h"
 #include "../battle/BattleInterfaceClasses.h"
 #include "../battle/BattleInterfaceClasses.h"
@@ -431,6 +432,7 @@ void CShowableAnim::blitImage(size_t frame, size_t group, Canvas & to)
 	if(img)
 	if(img)
 	{
 	{
 		img->setAlpha(alpha);
 		img->setAlpha(alpha);
+		img->setOverlayColor(Colors::TRANSPARENCY);
 		to.draw(img, pos.topLeft(), src);
 		to.draw(img, pos.topLeft(), src);
 	}
 	}
 }
 }