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
87c4d217
Commit
87c4d217
authored
Oct 19, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Pass a run ptr to the run drawing function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7875a77b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
paint.c
dlls/riched20/paint.c
+4
-5
No files found.
dlls/riched20/paint.c
View file @
87c4d217
...
...
@@ -440,9 +440,8 @@ static void ME_DebugWrite(HDC hDC, const POINT *pt, LPCWSTR szText) {
SetTextColor
(
hDC
,
color
);
}
static
void
ME_DrawRun
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_DisplayItem
*
rundi
,
ME_Paragraph
*
para
)
static
void
ME_DrawRun
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_Run
*
run
,
ME_Paragraph
*
para
)
{
ME_Run
*
run
=
&
rundi
->
member
.
run
;
ME_DisplayItem
*
start
;
int
runofs
=
run
->
nCharOfs
+
para
->
nCharOfs
;
int
nSelFrom
,
nSelTo
;
...
...
@@ -450,7 +449,7 @@ static void ME_DrawRun(ME_Context *c, int x, int y, ME_DisplayItem *rundi, ME_Pa
if
(
run
->
nFlags
&
MERF_HIDDEN
)
return
;
start
=
ME_FindItemBack
(
rundi
,
diStartRow
);
start
=
ME_FindItemBack
(
run_get_di
(
run
),
diStartRow
);
ME_GetSelectionOfs
(
c
->
editor
,
&
nSelFrom
,
&
nSelTo
);
/* Draw selected end-of-paragraph mark */
...
...
@@ -1003,8 +1002,8 @@ static void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph)
FrameRect
(
c
->
hDC
,
&
rc
,
GetSysColorBrush
(
COLOR_GRAYTEXT
));
}
if
(
visible
)
ME_DrawRun
(
c
,
c
->
pt
.
x
+
run
->
pt
.
x
,
c
->
pt
.
y
+
para
->
pt
.
y
+
run
->
pt
.
y
+
baseline
,
p
,
para
);
ME_DrawRun
(
c
,
c
->
pt
.
x
+
run
->
pt
.
x
,
c
->
pt
.
y
+
para
->
pt
.
y
+
run
->
pt
.
y
+
baseline
,
run
,
para
);
if
(
me_debug
)
{
static
const
WCHAR
wszRunDebug
[]
=
{
'['
,
'%'
,
'd'
,
':'
,
'%'
,
'x'
,
']'
,
' '
,
'%'
,
'l'
,
's'
,
0
};
...
...
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