diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-16 20:33:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-16 20:33:13 +0000 |
commit | 769b537b5e1a99fc53aa7296fd2b21dc77a4071c (patch) | |
tree | 7df94b386078575e6186523e1a165e4b0ba7ad9f /plugins/Clist_nicer/src/alphablend.cpp | |
parent | 2e15a3c2aae091fcbdd3234931a2777d050e43e1 (diff) |
name conflicts solved
git-svn-id: http://svn.miranda-ng.org/main/trunk@14971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/alphablend.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/alphablend.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Clist_nicer/src/alphablend.cpp b/plugins/Clist_nicer/src/alphablend.cpp index 0906dc512f..d14d6b36d6 100644 --- a/plugins/Clist_nicer/src/alphablend.cpp +++ b/plugins/Clist_nicer/src/alphablend.cpp @@ -84,7 +84,6 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor if (rc == NULL)
return;
- BLENDFUNCTION bf;
int ulBitmapWidth, ulBitmapHeight;
UCHAR ubAlpha = 0xFF;
UCHAR ubRedFinal = 0xFF;
@@ -158,6 +157,7 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor basecolor = argb_from_cola(revcolref(basecolor), alpha);
basecolor2 = argb_from_cola(revcolref(basecolor2), alpha);
+
BLENDFUNCTION bf;
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
@@ -166,6 +166,7 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor HDC hdc = CreateCompatibleDC(hdcwnd);
if (!hdc)
return;
+
HBITMAP hbm = CreateCompatibleBitmap(hdcwnd, width, height);
HBITMAP hbmOld = reinterpret_cast<HBITMAP>(SelectObject(hdc, hbm));
GdiGradientFill(hdc, tvtx, 2, &grect, 1, (FLG_GRADIENT & GRADIENT_TB || FLG_GRADIENT & GRADIENT_BT) ? GRADIENT_FILL_RECT_V : GRADIENT_FILL_RECT_H);
@@ -260,6 +261,8 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor }
}
}
+
+ BLENDFUNCTION bf;
bf.BlendOp = AC_SRC_OVER;
bf.BlendFlags = 0;
bf.SourceConstantAlpha = (UCHAR)(basecolor >> 24);
|