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
bf3e3d02
Commit
bf3e3d02
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Avoid TRUE:FALSE conditional expressions.
parent
8d24dd49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wordpad.c
programs/wordpad/wordpad.c
+3
-3
No files found.
programs/wordpad/wordpad.c
View file @
bf3e3d02
...
@@ -583,10 +583,10 @@ static void dialog_choose_font(void)
...
@@ -583,10 +583,10 @@ static void dialog_choose_font(void)
SendMessageW
(
hEditorWnd
,
EM_GETCHARFORMAT
,
SCF_SELECTION
,
(
LPARAM
)
&
fmt
);
SendMessageW
(
hEditorWnd
,
EM_GETCHARFORMAT
,
SCF_SELECTION
,
(
LPARAM
)
&
fmt
);
lstrcpyW
(
cf
.
lpLogFont
->
lfFaceName
,
fmt
.
szFaceName
);
lstrcpyW
(
cf
.
lpLogFont
->
lfFaceName
,
fmt
.
szFaceName
);
cf
.
lpLogFont
->
lfItalic
=
(
fmt
.
dwEffects
&
CFE_ITALIC
)
?
TRUE
:
FALSE
;
cf
.
lpLogFont
->
lfItalic
=
(
fmt
.
dwEffects
&
CFE_ITALIC
)
!=
0
;
cf
.
lpLogFont
->
lfWeight
=
(
fmt
.
dwEffects
&
CFE_BOLD
)
?
FW_BOLD
:
FW_NORMAL
;
cf
.
lpLogFont
->
lfWeight
=
(
fmt
.
dwEffects
&
CFE_BOLD
)
?
FW_BOLD
:
FW_NORMAL
;
cf
.
lpLogFont
->
lfUnderline
=
(
fmt
.
dwEffects
&
CFE_UNDERLINE
)
?
TRUE
:
FALSE
;
cf
.
lpLogFont
->
lfUnderline
=
(
fmt
.
dwEffects
&
CFE_UNDERLINE
)
!=
0
;
cf
.
lpLogFont
->
lfStrikeOut
=
(
fmt
.
dwEffects
&
CFE_STRIKEOUT
)
?
TRUE
:
FALSE
;
cf
.
lpLogFont
->
lfStrikeOut
=
(
fmt
.
dwEffects
&
CFE_STRIKEOUT
)
!=
0
;
cf
.
lpLogFont
->
lfHeight
=
-
MulDiv
(
fmt
.
yHeight
/
20
,
GetDeviceCaps
(
hDC
,
LOGPIXELSY
),
72
);
cf
.
lpLogFont
->
lfHeight
=
-
MulDiv
(
fmt
.
yHeight
/
20
,
GetDeviceCaps
(
hDC
,
LOGPIXELSY
),
72
);
cf
.
rgbColors
=
fmt
.
crTextColor
;
cf
.
rgbColors
=
fmt
.
crTextColor
;
...
...
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