summaryrefslogtreecommitdiff
path: root/plugins/Clist/clcpaint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist/clcpaint.cpp')
-rw-r--r--plugins/Clist/clcpaint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist/clcpaint.cpp b/plugins/Clist/clcpaint.cpp
index 1ddf6bebc1..dfa4147244 100644
--- a/plugins/Clist/clcpaint.cpp
+++ b/plugins/Clist/clcpaint.cpp
@@ -180,10 +180,10 @@ void PaintClc(HWND hwnd, struct ClcData *dat, HDC hdc, RECT * rcPaint)
y = -dat->yScroll;
hdcMem = CreateCompatibleDC(hdc);
hBmpOsb = CreateBitmap(clRect.right, clRect.bottom, 1, GetDeviceCaps(hdc, BITSPIXEL), NULL);
- hOldBitmap = SelectObject(hdcMem, hBmpOsb);
+ hOldBitmap = (HBITMAP)SelectObject(hdcMem, hBmpOsb);
{
TEXTMETRIC tm;
- hOldFont = SelectObject(hdcMem, dat->fontInfo[FONTID_GROUPS].hFont);
+ hOldFont = (HFONT)SelectObject(hdcMem, dat->fontInfo[FONTID_GROUPS].hFont);
GetTextMetrics(hdcMem, &tm);
groupCountsFontTopShift = tm.tmAscent;
SelectObject(hdcMem, dat->fontInfo[FONTID_GROUPCOUNTS].hFont);