cmdlgtst: HGDIOBJ is interchangeable with other handle types; no casts are needed.
Michael Stefaniuc
mstefani at redhat.de
Sat Oct 25 16:40:08 CDT 2008
---
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;
--
1.6.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081025/5a097e04/attachment.pgp
More information about the wine-patches
mailing list