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
c3e6cb5b
Commit
c3e6cb5b
authored
Oct 09, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't create a display context in InvalidateParagraphRange().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b466eefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
wrap.c
dlls/riched20/wrap.c
+7
-10
No files found.
dlls/riched20/wrap.c
View file @
c3e6cb5b
...
...
@@ -1093,28 +1093,25 @@ void ME_InvalidateParagraphRange(ME_TextEditor *editor,
ME_DisplayItem
*
start_para
,
ME_DisplayItem
*
last_para
)
{
ME_Context
c
;
RECT
rc
;
int
ofs
;
ME_InitContext
(
&
c
,
editor
,
ITextHost_TxGetDC
(
editor
->
texthost
));
rc
=
c
.
rcView
;
rc
=
editor
->
rcFormat
;
ofs
=
editor
->
vert_si
.
nPos
;
if
(
start_para
)
{
if
(
start_para
)
{
start_para
=
ME_GetOuterParagraph
(
start_para
);
last_para
=
ME_GetOuterParagraph
(
last_para
);
rc
.
top
=
c
.
rcView
.
top
+
start_para
->
member
.
para
.
pt
.
y
-
ofs
;
rc
.
top
+=
start_para
->
member
.
para
.
pt
.
y
-
ofs
;
}
else
{
rc
.
top
=
c
.
rcView
.
top
+
editor
->
nTotalLength
-
ofs
;
rc
.
top
+=
editor
->
nTotalLength
-
ofs
;
}
if
(
editor
->
nTotalLength
<
editor
->
nLastTotalLength
)
rc
.
bottom
=
c
.
rcView
.
top
+
editor
->
nLastTotalLength
-
ofs
;
rc
.
bottom
=
editor
->
rcFormat
.
top
+
editor
->
nLastTotalLength
-
ofs
;
else
rc
.
bottom
=
c
.
rcView
.
top
+
last_para
->
member
.
para
.
pt
.
y
+
last_para
->
member
.
para
.
nHeight
-
ofs
;
rc
.
bottom
=
editor
->
rcFormat
.
top
+
last_para
->
member
.
para
.
pt
.
y
+
last_para
->
member
.
para
.
nHeight
-
ofs
;
ITextHost_TxInvalidateRect
(
editor
->
texthost
,
&
rc
,
TRUE
);
ME_DestroyContext
(
&
c
);
}
...
...
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