Michael Stefaniuc : cmdlgtst: HGDIOBJ is interchangeable with other handle types; no casts are needed.
Alexandre Julliard
julliard at winehq.org
Mon Oct 27 08:03:15 CDT 2008
Module: wine
Branch: master
Commit: a195777b8590051427220edc4a751760f8a10974
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a195777b8590051427220edc4a751760f8a10974
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Oct 25 23:40:08 2008 +0200
cmdlgtst: HGDIOBJ is interchangeable with other handle types; no casts are needed.
---
programs/cmdlgtst/cmdlgtst.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/programs/cmdlgtst/cmdlgtst.c b/programs/cmdlgtst/cmdlgtst.c
index 33727f4..eeaf23b 100644
--- a/programs/cmdlgtst/cmdlgtst.c
+++ b/programs/cmdlgtst/cmdlgtst.c
@@ -290,9 +290,9 @@ static void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lPar
BeginPaint(hWnd, &ps);
GetClientRect(hWnd, (LPRECT) &rect);
- pen = (HPEN) SelectObject(ps.hdc, CreatePen(0, 0, fgColor));
- brush = (HBRUSH) SelectObject(ps.hdc, CreateSolidBrush(bgColor));
- font = (HFONT) SelectObject(ps.hdc, CreateFontIndirect(&cf_lf));
+ pen = SelectObject(ps.hdc, CreatePen(0, 0, fgColor));
+ brush = SelectObject(ps.hdc, CreateSolidBrush(bgColor));
+ font = SelectObject(ps.hdc, CreateFontIndirect(&cf_lf));
/*
* Ideally, we'd only need to draw the exposed bit.
@@ -324,11 +324,11 @@ static void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lPar
* and delete the newly created objects.
*/
- pen = (HPEN) SelectObject(ps.hdc, pen);
+ pen = SelectObject(ps.hdc, pen);
DeleteObject(pen);
- brush = (HBRUSH) SelectObject(ps.hdc, brush);
+ brush = SelectObject(ps.hdc, brush);
DeleteObject(brush);
- font = (HFONT) SelectObject(ps.hdc, font);
+ font = SelectObject(ps.hdc, font);
DeleteObject(font);
EndPaint(hWnd, &ps);
@@ -999,7 +999,7 @@ static int registerMainWindowClass(HINSTANCE hInstance)
#endif
wndClass.hIcon = 0;
wndClass.hCursor = 0;
- wndClass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);
+ wndClass.hbrBackground = GetStockObject(WHITE_BRUSH);
wndClass.lpszMenuName = menuName;
wndClass.lpszClassName = className;
More information about the wine-cvs
mailing list