Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a195777b
Commit
a195777b
authored
Oct 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdlgtst: HGDIOBJ is interchangeable with other handle types; no casts are needed.
parent
2d90c85a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
cmdlgtst.c
programs/cmdlgtst/cmdlgtst.c
+7
-7
No files found.
programs/cmdlgtst/cmdlgtst.c
View file @
a195777b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment