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
d65daea4
Commit
d65daea4
authored
Jan 04, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Uniformly handle the bPitchAndFamily field out of CHARFORMAT.
parent
cb4f8a80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
editor.c
dlls/riched20/editor.c
+1
-0
run.c
dlls/riched20/run.c
+2
-1
style.c
dlls/riched20/style.c
+2
-1
No files found.
dlls/riched20/editor.c
View file @
d65daea4
...
@@ -419,6 +419,7 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
...
@@ -419,6 +419,7 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
fmt
.
szFaceName
[
sizeof
(
fmt
.
szFaceName
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
fmt
.
szFaceName
[
sizeof
(
fmt
.
szFaceName
)
/
sizeof
(
WCHAR
)
-
1
]
=
'\0'
;
fmt
.
bCharSet
=
f
->
rtfFCharSet
;
fmt
.
bCharSet
=
f
->
rtfFCharSet
;
fmt
.
dwMask
=
CFM_FACE
|
CFM_CHARSET
;
fmt
.
dwMask
=
CFM_FACE
|
CFM_CHARSET
;
fmt
.
bPitchAndFamily
=
DEFAULT_PITCH
|
FF_DONTCARE
;
}
}
}
}
break
;
break
;
...
...
dlls/riched20/run.c
View file @
d65daea4
...
@@ -950,7 +950,8 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
...
@@ -950,7 +950,8 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
{
{
if
(
!
(
tmp
.
dwMask
&
CFM_FACE
))
if
(
!
(
tmp
.
dwMask
&
CFM_FACE
))
pFmt
->
dwMask
&=
~
CFM_FACE
;
pFmt
->
dwMask
&=
~
CFM_FACE
;
else
if
(
lstrcmpW
(
pFmt
->
szFaceName
,
tmp
.
szFaceName
))
else
if
(
lstrcmpW
(
pFmt
->
szFaceName
,
tmp
.
szFaceName
)
||
pFmt
->
bPitchAndFamily
!=
tmp
.
bPitchAndFamily
)
pFmt
->
dwMask
&=
~
CFM_FACE
;
pFmt
->
dwMask
&=
~
CFM_FACE
;
}
}
if
(
pFmt
->
yHeight
!=
tmp
.
yHeight
)
if
(
pFmt
->
yHeight
!=
tmp
.
yHeight
)
...
...
dlls/riched20/style.c
View file @
d65daea4
...
@@ -320,7 +320,8 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s)
...
@@ -320,7 +320,8 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s)
if
(
s
->
fmt
.
dwEffects
&
s
->
fmt
.
dwMask
&
(
CFM_SUBSCRIPT
|
CFM_SUPERSCRIPT
))
if
(
s
->
fmt
.
dwEffects
&
s
->
fmt
.
dwMask
&
(
CFM_SUBSCRIPT
|
CFM_SUPERSCRIPT
))
lf
->
lfHeight
=
(
lf
->
lfHeight
*
2
)
/
3
;
lf
->
lfHeight
=
(
lf
->
lfHeight
*
2
)
/
3
;
/*lf.lfQuality = PROOF_QUALITY; */
/*lf.lfQuality = PROOF_QUALITY; */
lf
->
lfPitchAndFamily
=
s
->
fmt
.
bPitchAndFamily
;
if
(
s
->
fmt
.
dwMask
&
CFM_FACE
)
lf
->
lfPitchAndFamily
=
s
->
fmt
.
bPitchAndFamily
;
if
(
s
->
fmt
.
dwMask
&
CFM_CHARSET
)
if
(
s
->
fmt
.
dwMask
&
CFM_CHARSET
)
lf
->
lfCharSet
=
s
->
fmt
.
bCharSet
;
lf
->
lfCharSet
=
s
->
fmt
.
bCharSet
;
}
}
...
...
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