diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-04 19:57:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-04 19:57:39 +0000 |
commit | cfdcb484e0920e7c4cbd36b413b17d83a106dac6 (patch) | |
tree | 81cba6784e0fcc882c90b2057535228bdaba4341 /plugins/TipperYM/src/bitmap_func.cpp | |
parent | 011c86b22aa67f25d751f731501eaaec9600f44c (diff) |
fix for crash in Tipper
git-svn-id: http://svn.miranda-ng.org/main/trunk@3888 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/bitmap_func.cpp')
-rw-r--r-- | plugins/TipperYM/src/bitmap_func.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TipperYM/src/bitmap_func.cpp b/plugins/TipperYM/src/bitmap_func.cpp index 52ab9a2cc9..4e747fb90a 100644 --- a/plugins/TipperYM/src/bitmap_func.cpp +++ b/plugins/TipperYM/src/bitmap_func.cpp @@ -479,8 +479,8 @@ void SaveAlpha(LPRECT lpRect) if (lpRect->left < 0) lpRect->left = 0;
if (lpRect->top < 0) lpRect->top = 0;
- if (lpRect->right > skin.iWidth) lpRect->right = skin.iWidth;
- if (lpRect->bottom > skin.iHeight) lpRect->bottom = skin.iHeight;
+ if (lpRect->right - lpRect->left > skin.iWidth) lpRect->right = lpRect->left + skin.iWidth;
+ if (lpRect->bottom - lpRect->top > skin.iHeight) lpRect->bottom = lpRect->top + skin.iHeight;
int x = lpRect->left;
int y = lpRect->top;
|