1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-09 13:14:02 +02:00

Do not show selection highlight on creature preview images

This commit is contained in:
Ivan Savenko 2024-11-17 20:40:38 +00:00
parent dfe6e04464
commit 91940dbfc6

View File

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