From c45bee74e2fc032ad0e6c7915d56d30f6c4c768d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Mar 2015 22:33:41 +0000 Subject: 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 --- plugins/TipperYM/src/bitmap_func.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/TipperYM/src/bitmap_func.h') 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); -- cgit v1.2.3