summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/avatars_simple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup/src/avatars_simple.cpp')
-rw-r--r--plugins/Popup/src/avatars_simple.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/Popup/src/avatars_simple.cpp b/plugins/Popup/src/avatars_simple.cpp
index 2c3b3341cb..b152afdc47 100644
--- a/plugins/Popup/src/avatars_simple.cpp
+++ b/plugins/Popup/src/avatars_simple.cpp
@@ -104,7 +104,7 @@ void SimpleAvatar::draw(MyBitmap *bmp, int x, int y, int w, int h, POPUPOPTIONS
SelectObject(hdcTmp, av->hbmPic);
SetStretchBltMode(bmp->getDC(), HALFTONE);
-#if defined(_UNICODE)
+
if (av->dwFlags & AVS_HASTRANSPARENCY)
{
BLENDFUNCTION bf;
@@ -113,17 +113,7 @@ void SimpleAvatar::draw(MyBitmap *bmp, int x, int y, int w, int h, POPUPOPTIONS
bf.SourceConstantAlpha = 255;
bf.AlphaFormat = AC_SRC_ALPHA;
AlphaBlend(bmp->getDC(), x, y, w, h, hdcTmp, 0, 0, av->bmWidth, av->bmHeight, bf);
-#else
-// if (MyAlphaBlend && (av->dwFlags & AVS_PREMULTIPLIED))
- if (MyAlphaBlend && (av->dwFlags & AVS_HASTRANSPARENCY))
- {
- BLENDFUNCTION bf;
- bf.BlendOp = AC_SRC_OVER;
- bf.BlendFlags = 0;
- bf.SourceConstantAlpha = 255;
- bf.AlphaFormat = AC_SRC_ALPHA;
- MyAlphaBlend(bmp->getDC(), x, y, w, h, hdcTmp, 0, 0, av->bmWidth, av->bmHeight, bf);
-#endif
+
if (options->avatarBorders && options->avatarPNGBorders)
{
HBRUSH hbr = CreateSolidBrush(fonts.clAvatarBorder);