summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/popup_gdiplus.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-04-27 16:07:42 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-04-27 16:07:42 +0000
commitf3b5ee60a8e1ada21848105d839198956af6df79 (patch)
tree031c01e3c9039837fe7a7a5a1a9d853c78341630 /plugins/Popup/src/popup_gdiplus.cpp
parent238c5baeb88885cebb530d3d988de7eeb8b2c638 (diff)
Fixed broken font settings (fixes #658)
String "%s (colors only)" must be translated manually for each git-svn-id: http://svn.miranda-ng.org/main/trunk@9091 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/popup_gdiplus.cpp')
-rw-r--r--plugins/Popup/src/popup_gdiplus.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/Popup/src/popup_gdiplus.cpp b/plugins/Popup/src/popup_gdiplus.cpp
index a3ce6ce41f..f024eaa31e 100644
--- a/plugins/Popup/src/popup_gdiplus.cpp
+++ b/plugins/Popup/src/popup_gdiplus.cpp
@@ -71,14 +71,11 @@ using namespace Gdiplus;
HBITMAP SkinEngine_CreateDIB32(int cx, int cy)
{
- BITMAPINFO RGB32BitsBITMAPINFO;
- UINT * ptPixels;
- HBITMAP DirectBitmap;
-
if ( cx < 0 || cy < 0 ) {
return NULL;
}
+ BITMAPINFO RGB32BitsBITMAPINFO;
ZeroMemory(&RGB32BitsBITMAPINFO,sizeof(BITMAPINFO));
RGB32BitsBITMAPINFO.bmiHeader.biSize=sizeof(BITMAPINFOHEADER);
RGB32BitsBITMAPINFO.bmiHeader.biWidth=cx;//bm.bmWidth;
@@ -88,11 +85,8 @@ HBITMAP SkinEngine_CreateDIB32(int cx, int cy)
// pointer used for direct Bitmap pixels access
- DirectBitmap = CreateDIBSection(NULL,
- (BITMAPINFO *)&RGB32BitsBITMAPINFO,
- DIB_RGB_COLORS,
- (void **)&ptPixels,
- NULL, 0);
+ UINT *ptPixels;
+ HBITMAP DirectBitmap = CreateDIBSection(NULL, &RGB32BitsBITMAPINFO, DIB_RGB_COLORS, (void **)&ptPixels, NULL, 0);
if ((DirectBitmap == NULL || ptPixels == NULL) && cx!= 0 && cy!=0)
{
;
@@ -109,9 +103,8 @@ BOOL GDIPlus_IsAnimatedGIF(TCHAR * szName)
{
int nFrameCount=0;
Image image(szName);
- UINT count = 0;
- count = image.GetFrameDimensionsCount();
+ UINT count = image.GetFrameDimensionsCount();
GUID* pDimensionIDs = new GUID[count];
// Get the list of frame dimensions from the Image object.