summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/alphablend.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-09 22:04:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-09 22:04:23 +0000
commitc274523d9bc253461a3c337d66e09532edae6edd (patch)
treea9b76fde0343815d72a08cd243aedda49883c2c8 /plugins/Clist_nicer/src/alphablend.cpp
parentf0c78cf0170f9bbacb6adbcfbc215198a13292cf (diff)
clist nicer+, part III, final:
- standard icons (visible, invisible, chat active) removed from clist due to duplicates; - icon clicks work again; - fix for double extra icons drawing; - tons of various cleanups git-svn-id: http://svn.miranda-ng.org/main/trunk@2265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/alphablend.cpp')
-rw-r--r--plugins/Clist_nicer/src/alphablend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_nicer/src/alphablend.cpp b/plugins/Clist_nicer/src/alphablend.cpp
index 79b3f8353d..eb46d4c437 100644
--- a/plugins/Clist_nicer/src/alphablend.cpp
+++ b/plugins/Clist_nicer/src/alphablend.cpp
@@ -141,7 +141,7 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor
TRIVERTEX tvtx[2];
int orig = 1, dest = 0;
- if (!(FLG_GRADIENT & GRADIENT_ACTIVE)) {
+ if ( !(FLG_GRADIENT & GRADIENT_ACTIVE)) {
tvtx[0].Red = tvtx[1].Red = (COLOR16)GetRValue(basecolor) << 8;
tvtx[0].Blue = tvtx[1].Blue = (COLOR16)GetBValue(basecolor) << 8;
tvtx[0].Green = tvtx[1].Green = (COLOR16)GetGValue(basecolor) << 8;
@@ -185,7 +185,7 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor
bf.SourceConstantAlpha = percent_to_byte((UINT32)alpha);
bf.AlphaFormat = 0; // so it will use our specified alpha value
hdc = CreateCompatibleDC(hdcwnd);
- if (!hdc)
+ if ( !hdc)
return;
hbm = CreateCompatibleBitmap(hdcwnd, width, height);
hbmOld = reinterpret_cast<HBITMAP>(SelectObject(hdc, hbm));
@@ -209,7 +209,7 @@ void DrawAlpha(HDC hdcwnd, PRECT rc, DWORD basecolor, int alpha, DWORD basecolor
}
hdc = CreateCompatibleDC(hdcwnd);
- if (!hdc)
+ if ( !hdc)
return;
ZeroMemory(&bmi, sizeof(BITMAPINFO));