diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-03 22:33:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-03 22:33:41 +0000 |
commit | c45bee74e2fc032ad0e6c7915d56d30f6c4c768d (patch) | |
tree | c64c45b7bcffeaa740c0d52af453ecd0b850afde /plugins/TipperYM/src/bitmap_func.h | |
parent | 9bc0ce881476f19094916eb6a2f5de3e0f3df1fe (diff) |
fix for a memory corruption caused by the global variable in Tipper
git-svn-id: http://svn.miranda-ng.org/main/trunk@12310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/bitmap_func.h')
-rw-r--r-- | plugins/TipperYM/src/bitmap_func.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TipperYM/src/bitmap_func.h b/plugins/TipperYM/src/bitmap_func.h index ea4c11bd52..ec79f1d8fe 100644 --- a/plugins/TipperYM/src/bitmap_func.h +++ b/plugins/TipperYM/src/bitmap_func.h @@ -51,7 +51,6 @@ typedef struct { HBITMAP hbmpSkinParts[SKIN_ITEMS_COUNT][SKIN_PARTS_COUNT];
FIBITMAP *fib[SKIN_ITEMS_COUNT];
COLOR32 *colBits;
- COLOR32 *colSavedBits;
int iWidth;
int iHeight;
bool bNeedLayerUpdate;
@@ -62,8 +61,8 @@ void CreateSkinBitmap(int iWidth, int iHeight, bool bServiceTip); void DestroySkinBitmap();
int DrawTextAlpha(HDC hdc, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat);
void DrawIconExAlpha(HDC hdc, int xLeft, int yTop, HICON hIcon, int cxWidth, int cyWidth, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags, bool bIsSmiley);
-void SaveAlpha(LPRECT lpRect);
-void RestoreAlpha(LPRECT lpRect, BYTE alpha = 0xff);
+COLOR32* SaveAlpha(LPRECT lpRect);
+void RestoreAlpha(LPRECT lpRect, COLOR32 *pBits, BYTE alpha = 0xff);
void PremultipleChannels();
void ColorizeBitmap();
HRGN CreateOpaqueRgn(BYTE level, bool bOpaque);
|