summaryrefslogtreecommitdiff
path: root/plugins/CountryFlags/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CountryFlags/icons.cpp')
-rw-r--r--plugins/CountryFlags/icons.cpp4
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? */