From 2ab1b0f2e1e7c2599febcc097cd5b9df0e57bd48 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 10 Jan 2005 21:20:06 +0000 Subject: [PATCH] _NO_ALPHABLEND compiler switch svn path=/trunk/; revision=12920 --- reactos/subsys/system/explorer/taskbar/traynotify.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/subsys/system/explorer/taskbar/traynotify.cpp b/reactos/subsys/system/explorer/taskbar/traynotify.cpp index 07c0491cc01..e8f35554523 100644 --- a/reactos/subsys/system/explorer/taskbar/traynotify.cpp +++ b/reactos/subsys/system/explorer/taskbar/traynotify.cpp @@ -635,9 +635,11 @@ void NotifyArea::UpdateIcons() UpdateWindow(_hwnd); } +#ifndef _NO_ALPHABLEND #ifdef _MSC_VER #pragma comment(lib, "msimg32") // for AlphaBlend() #endif +#endif void NotifyArea::Paint() { @@ -664,11 +666,13 @@ void NotifyArea::Paint() BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) { +#ifndef _NO_ALPHABLEND if (it->_dwState & NIS_HIDDEN) { FillRect(mem_dc, &rect, GetSysColorBrush(COLOR_BTNFACE)); DrawIconEx(mem_dc, 0, 0, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL); AlphaBlend(canvas, x, y, NOTIFYICON_SIZE, NOTIFYICON_SIZE, mem_dc, 0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE, blend); } else +#endif DrawIconEx(canvas, x, y, it->_hIcon, NOTIFYICON_SIZE, NOTIFYICON_SIZE, 0, 0, DI_NORMAL); x += NOTIFYICON_DIST;