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
44ec1a2e
Commit
44ec1a2e
authored
Apr 20, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use symbolic names of font styles.
parent
9b5b04c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
font.c
dlls/gdiplus/font.c
+3
-3
No files found.
dlls/gdiplus/font.c
View file @
44ec1a2e
...
...
@@ -148,7 +148,7 @@ GpStatus WINGDIPAPI GdipCreateFont(GDIPCONST GpFontFamily *fontFamily,
lfw
->
lfHeight
=
(
*
font
)
->
pixel_size
*
-
1
;
lfw
->
lfWeight
=
style
&
FontStyleBold
?
700
:
400
;
lfw
->
lfWeight
=
style
&
FontStyleBold
?
FW_BOLD
:
FW_REGULAR
;
lfw
->
lfItalic
=
style
&
FontStyleItalic
;
lfw
->
lfUnderline
=
style
&
FontStyleUnderline
;
lfw
->
lfStrikeOut
=
style
&
FontStyleStrikeout
;
...
...
@@ -340,10 +340,10 @@ GpStatus WINGDIPAPI GdipGetFontStyle(GpFont *font, INT *style)
if
(
!
(
font
&&
style
))
return
InvalidParameter
;
if
(
font
->
lfw
.
lfWeight
>
400
)
if
(
font
->
lfw
.
lfWeight
>
FW_REGULAR
)
*
style
=
FontStyleBold
;
else
*
style
=
0
;
*
style
=
FontStyleRegular
;
if
(
font
->
lfw
.
lfItalic
)
*
style
|=
FontStyleItalic
;
if
(
font
->
lfw
.
lfUnderline
)
...
...
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