diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 12:16:06 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-23 12:16:06 +0000 |
commit | a61354ca53d0a61dfcce006ce2e8eb05fd47dc51 (patch) | |
tree | 1fe60d7c597c501232ed773aa2853d1c53592cc1 /plugins/CountryFlags/icons.cpp | |
parent | 2cb25593d58160d3b3befabfa59f3c389724a419 (diff) |
CountryFlags:
plusified
git-svn-id: http://svn.miranda-ng.org/main/trunk@542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CountryFlags/icons.cpp')
-rw-r--r-- | plugins/CountryFlags/icons.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CountryFlags/icons.cpp b/plugins/CountryFlags/icons.cpp index 82dea7cabc..3b456a4d11 100644 --- a/plugins/CountryFlags/icons.cpp +++ b/plugins/CountryFlags/icons.cpp @@ -105,7 +105,7 @@ static HICON FASTCALL ResizeIconCentered(HICON hIcon,int cx,int cy) if(GetObject(icoi.hbmColor,sizeof(bm),&bm) && bm.bmWidth<=cx && bm.bmHeight<=cy) {
pt.x=(cx-bm.bmWidth)/2;
pt.y=(cy-bm.bmHeight)/2;
- hbmPrev=SelectObject(hdc,icoi.hbmColor);
+ hbmPrev = (HBITMAP)SelectObject(hdc, icoi.hbmColor);
if(hbmPrev!=NULL) { /* error on select? */
hbm=icoi.hbmColor;
icoi.hbmColor=CreateCompatibleBitmap(hdc,cx,cy);
@@ -202,7 +202,7 @@ static INT_PTR ServiceCreateMergedFlagIcon(WPARAM wParam,LPARAM lParam) if(hrgn!=NULL) {
SelectClipRgn(hdc,hrgn);
DeleteObject(hrgn);
- hbmPrev=SelectObject(hdc,icoi.hbmColor);
+ hbmPrev = (HBITMAP)SelectObject(hdc, icoi.hbmColor);
if(hbmPrev!=NULL) { /* error on select? */
if(DrawIconEx(hdc,0,0,hUpperIcon,bm.bmWidth,bm.bmHeight,0,NULL,DI_NOMIRROR|DI_IMAGE))
if(SelectObject(hdc,icoi.hbmMask)!=NULL) /* error on select? */
|