From 555ce4dfcc5b028219da4e6401a32f7f976044ae Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 24 Sep 2013 18:08:07 +0000 Subject: plugins cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/imagecache.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/imagecache.cpp b/plugins/SmileyAdd/src/imagecache.cpp index 28de0704b8..9d6fff549c 100644 --- a/plugins/SmileyAdd/src/imagecache.cpp +++ b/plugins/SmileyAdd/src/imagecache.cpp @@ -18,9 +18,6 @@ along with this program. If not, see . #include "general.h" -typedef BOOL (WINAPI *tAlphaBlend)(HDC, int, int, int, int, HDC, int, int, int, int, BLENDFUNCTION); -static tAlphaBlend pAlphaBlend; - static FI_INTERFACE *fei; static HANDLE g_hMutexIm; @@ -492,12 +489,12 @@ void ImageFType::DrawInternal(HDC hdc, int x, int y, int sizeX, int sizeY) BITMAP bm; GetObject(m_bmp, sizeof(bm), &bm); - if (bm.bmBitsPixel == 32 && pAlphaBlend) + if (bm.bmBitsPixel == 32) { BLENDFUNCTION bf = {0}; bf.SourceConstantAlpha = 255; bf.AlphaFormat = AC_SRC_ALPHA; - pAlphaBlend(hdc, x, y, sizeX, sizeY, hdcImg, 0, 0, bm.bmWidth, bm.bmHeight, bf); + GdiAlphaBlend(hdc, x, y, sizeX, sizeY, hdcImg, 0, 0, bm.bmWidth, bm.bmHeight, bf); } else { @@ -707,10 +704,6 @@ void InitImageCache(void) { g_hMutexIm = CreateMutex(NULL, FALSE, NULL); CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM) &fei); - - pAlphaBlend = (tAlphaBlend) GetProcAddress(GetModuleHandleA("gdi32"), "GdiAlphaBlend"); - if (pAlphaBlend == NULL) - pAlphaBlend = (tAlphaBlend) GetProcAddress(LoadLibraryA("msimg32"), "AlphaBlend"); } void DestroyImageCache(void) -- cgit v1.2.3