summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/imagecache.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-24 18:08:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-24 18:08:07 +0000
commit555ce4dfcc5b028219da4e6401a32f7f976044ae (patch)
tree77ad49c389f73170ae4ece6d79742e5dff00d1ec /plugins/SmileyAdd/src/imagecache.cpp
parentef62ee59a0cd7ce34af0f62fbe4768ac12320edb (diff)
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/imagecache.cpp')
-rw-r--r--plugins/SmileyAdd/src/imagecache.cpp11
1 files changed, 2 insertions, 9 deletions
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 <http://www.gnu.org/licenses/>.
#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)