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
e1c63084
Commit
e1c63084
authored
Sep 14, 2006
by
Byeong-Sik Jeon
Committed by
Alexandre Julliard
Sep 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Show better font style information in fontdlg.
parent
15b7934f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fontdlg.c
dlls/comdlg32/fontdlg.c
+3
-2
No files found.
dlls/comdlg32/fontdlg.c
View file @
e1c63084
...
...
@@ -386,13 +386,14 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTW *lplf)
hf
=
SelectObject
(
hdc
,
hf
);
DeleteObject
(
hf
);
/* font successful created ? */
if
(
tm
.
tmWeight
==
fontstyles
[
i
].
weight
&&
if
(((
fontstyles
[
i
].
weight
==
FW_NORMAL
&&
tm
.
tmWeight
<=
FW_MEDIUM
)
||
(
fontstyles
[
i
].
weight
==
FW_BOLD
&&
tm
.
tmWeight
>
FW_MEDIUM
))
&&
((
tm
.
tmItalic
!=
0
)
==
fontstyles
[
i
].
italic
))
{
j
=
SendMessageW
(
hwnd
,
CB_ADDSTRING
,
0
,(
LPARAM
)
fontstyles
[
i
].
stname
);
if
(
j
==
CB_ERR
)
return
1
;
j
=
SendMessageW
(
hwnd
,
CB_SETITEMDATA
,
j
,
MAKELONG
(
fontstyles
[
i
].
w
eight
,
fontstyles
[
i
].
italic
));
MAKELONG
(
tm
.
tmW
eight
,
fontstyles
[
i
].
italic
));
if
(
j
==
CB_ERR
)
return
1
;
}
}
...
...
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