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
aae4fa9b
Commit
aae4fa9b
authored
Mar 25, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Don't invalidate while inside TxDraw().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e668aa9d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
editor.h
dlls/riched20/editor.h
+1
-1
txtsrv.c
dlls/riched20/txtsrv.c
+1
-1
wrap.c
dlls/riched20/wrap.c
+3
-3
No files found.
dlls/riched20/editor.h
View file @
aae4fa9b
...
...
@@ -202,7 +202,7 @@ void ME_DestroyContext(ME_Context *c) DECLSPEC_HIDDEN;
BOOL
ME_WrapMarkedParagraphs
(
ME_TextEditor
*
editor
)
DECLSPEC_HIDDEN
;
void
para_range_invalidate
(
ME_TextEditor
*
editor
,
ME_Paragraph
*
start_para
,
ME_Paragraph
*
last_para
)
DECLSPEC_HIDDEN
;
void
ME_SendRequestResize
(
ME_TextEditor
*
editor
,
BOOL
force
)
DECLSPEC_HIDDEN
;
BOOL
wrap_marked_paras_dc
(
ME_TextEditor
*
editor
,
HDC
hdc
)
DECLSPEC_HIDDEN
;
BOOL
wrap_marked_paras_dc
(
ME_TextEditor
*
editor
,
HDC
hdc
,
BOOL
invalidate
)
DECLSPEC_HIDDEN
;
/* para.c */
void
editor_get_selection_paras
(
ME_TextEditor
*
editor
,
ME_Paragraph
**
para
,
ME_Paragraph
**
para_end
)
DECLSPEC_HIDDEN
;
...
...
dlls/riched20/txtsrv.c
View file @
aae4fa9b
...
...
@@ -192,7 +192,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw( ITextServices *iface, DWORD
if
(
rewrap
)
{
editor_mark_rewrap_all
(
services
->
editor
);
wrap_marked_paras_dc
(
services
->
editor
,
dc
);
wrap_marked_paras_dc
(
services
->
editor
,
dc
,
FALSE
);
}
editor_draw
(
services
->
editor
,
dc
,
update
);
...
...
dlls/riched20/wrap.c
View file @
aae4fa9b
...
...
@@ -1020,7 +1020,7 @@ static void adjust_para_y( ME_Paragraph *para, ME_Context *c, struct repaint_ran
}
}
BOOL
wrap_marked_paras_dc
(
ME_TextEditor
*
editor
,
HDC
hdc
)
BOOL
wrap_marked_paras_dc
(
ME_TextEditor
*
editor
,
HDC
hdc
,
BOOL
invalidate
)
{
ME_Paragraph
*
para
,
*
next
;
struct
wine_rb_entry
*
entry
,
*
next_entry
=
NULL
;
...
...
@@ -1086,7 +1086,7 @@ BOOL wrap_marked_paras_dc( ME_TextEditor *editor, HDC hdc )
ME_DestroyContext
(
&
c
);
if
(
repaint
.
start
||
editor
->
nTotalLength
<
editor
->
nLastTotalLength
)
if
(
invalidate
&&
(
repaint
.
start
||
editor
->
nTotalLength
<
editor
->
nLastTotalLength
)
)
para_range_invalidate
(
editor
,
repaint
.
start
,
repaint
.
end
);
return
!!
repaint
.
start
;
}
...
...
@@ -1094,7 +1094,7 @@ BOOL wrap_marked_paras_dc( ME_TextEditor *editor, HDC hdc )
BOOL
ME_WrapMarkedParagraphs
(
ME_TextEditor
*
editor
)
{
HDC
hdc
=
ITextHost_TxGetDC
(
editor
->
texthost
);
BOOL
ret
=
wrap_marked_paras_dc
(
editor
,
hdc
);
BOOL
ret
=
wrap_marked_paras_dc
(
editor
,
hdc
,
TRUE
);
ITextHost_TxReleaseDC
(
editor
->
texthost
,
hdc
);
return
ret
;
}
...
...
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