diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-01 15:27:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-01 15:27:05 +0000 |
commit | 0de96c12a1f301133c02e871b6de6d0bb3eca173 (patch) | |
tree | e283f4c3b73301542f92fcdb2ca24a713402387e | |
parent | bacebef9af7acf3220bd829e13d062187985e317 (diff) |
Popup:
-Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Popup/src/bitmap_funcs.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Popup/src/bitmap_funcs.cpp b/plugins/Popup/src/bitmap_funcs.cpp index f88668d7ee..9e941194a1 100644 --- a/plugins/Popup/src/bitmap_funcs.cpp +++ b/plugins/Popup/src/bitmap_funcs.cpp @@ -95,17 +95,17 @@ void MyBitmap::makeOpaqueRect(int x1, int y1, int x2, int y2) void MyBitmap::saveAlpha(int x, int y, int w, int h)
{
- if (bitsSave)
- delete[] bitsSave;
-
- GdiFlush();
-
+ if (x < 0 || y < 0)
+ return;
if (!w) w = width;
if (!h) h = height;
if (!w || !h)
return;
- if (x < 0 || y < 0)
- return;
+
+ if (bitsSave)
+ delete[] bitsSave;
+
+ GdiFlush();
bitsSave = new COLOR32[w*h];
COLOR32 *p1 = bitsSave;
|