Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4c322698
Commit
4c322698
authored
Oct 04, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Set the end-of-paragraph run width to that of a space.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c8a90e5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
run.c
dlls/riched20/run.c
+8
-9
No files found.
dlls/riched20/run.c
View file @
4c322698
...
...
@@ -611,17 +611,16 @@ SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run *run, i
int
startx
,
int
*
pAscent
,
int
*
pDescent
)
{
SIZE
size
;
int
nMaxLen
=
run
->
len
;
WCHAR
spaceW
[]
=
{
' '
,
0
}
;
if
(
nLen
>
nMaxLen
)
nLen
=
nMaxLen
;
nLen
=
min
(
nLen
,
run
->
len
);
/* FIXME the following call also ensures that TEXTMETRIC structure is filled
* this is wasteful for MERF_NONTEXT runs, but that shouldn't matter
* in practice
*/
if
(
para
->
nFlags
&
MEPF_COMPLEX
)
if
(
run
->
nFlags
&
MERF_ENDPARA
)
{
nLen
=
min
(
nLen
,
1
);
ME_GetTextExtent
(
c
,
spaceW
,
nLen
,
run
->
style
,
&
size
);
}
else
if
(
para
->
nFlags
&
MEPF_COMPLEX
)
{
size
.
cx
=
run
->
nWidth
;
}
...
...
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