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
c9197aad
Commit
c9197aad
authored
Nov 28, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Nov 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in the test for italic font style property.
parent
3e22f432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fontdlg.c
dlls/commdlg/fontdlg.c
+4
-4
No files found.
dlls/commdlg/fontdlg.c
View file @
c9197aad
...
@@ -444,8 +444,8 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTA *lplf)
...
@@ -444,8 +444,8 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTA *lplf)
char
stname
[
20
];
char
stname
[
20
];
};
};
static
struct
FONTSTYLE
fontstyles
[
FSTYLES
]
=
{
static
struct
FONTSTYLE
fontstyles
[
FSTYLES
]
=
{
{
0
,
FW_NORMAL
,
"Regular"
},
{
0
,
FW_BOLD
,
"Bold
"
},
{
0
,
FW_NORMAL
,
"Regular"
},
{
1
,
FW_NORMAL
,
"Italic
"
},
{
1
,
FW_NORMAL
,
"Italic"
},
{
1
,
FW_BOLD
,
"Bold Italic"
}
{
0
,
FW_BOLD
,
"Bold"
},
{
1
,
FW_BOLD
,
"Bold Italic"
}
};
};
HFONT
hf
;
HFONT
hf
;
TEXTMETRICA
tm
;
TEXTMETRICA
tm
;
...
@@ -463,9 +463,9 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTA *lplf)
...
@@ -463,9 +463,9 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTA *lplf)
GetTextMetricsA
(
hdc
,
&
tm
);
GetTextMetricsA
(
hdc
,
&
tm
);
hf
=
SelectObject
(
hdc
,
hf
);
hf
=
SelectObject
(
hdc
,
hf
);
DeleteObject
(
hf
);
DeleteObject
(
hf
);
/* font successful created ? */
if
(
tm
.
tmWeight
==
fontstyles
[
i
].
weight
&&
if
(
tm
.
tmWeight
==
fontstyles
[
i
].
weight
&&
tm
.
tmItalic
==
fontstyles
[
i
].
italic
)
/* font successful created ? */
((
tm
.
tmItalic
!=
0
)
==
fontstyles
[
i
].
italic
))
{
{
j
=
SendMessageA
(
hwnd
,
CB_ADDSTRING
,
0
,(
LPARAM
)
fontstyles
[
i
].
stname
);
j
=
SendMessageA
(
hwnd
,
CB_ADDSTRING
,
0
,(
LPARAM
)
fontstyles
[
i
].
stname
);
if
(
j
==
CB_ERR
)
return
1
;
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