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
d5478118
Commit
d5478118
authored
Jan 01, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Don't force repaint while the redraw flag is off.
parent
f43570cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
editor.c
dlls/riched20/editor.c
+2
-1
paint.c
dlls/riched20/paint.c
+8
-5
No files found.
dlls/riched20/editor.c
View file @
d5478118
...
...
@@ -2660,7 +2660,8 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
ME_SendRequestResize
(
editor
,
TRUE
);
return
0
;
case
WM_SETREDRAW
:
editor
->
bRedraw
=
wParam
;
if
((
editor
->
bRedraw
=
wParam
))
ME_RewrapRepaint
(
editor
);
return
0
;
case
WM_SIZE
:
{
...
...
dlls/riched20/paint.c
View file @
d5478118
...
...
@@ -109,7 +109,8 @@ void ME_UpdateRepaint(ME_TextEditor *editor)
{
/* Should be called whenever the contents of the control have changed */
ME_Cursor
*
pCursor
;
if
(
!
editor
->
bRedraw
)
return
;
if
(
ME_WrapMarkedParagraphs
(
editor
))
ME_UpdateScrollBar
(
editor
);
...
...
@@ -135,10 +136,12 @@ ME_RewrapRepaint(ME_TextEditor *editor)
* looks, but not content. Like resizing. */
ME_MarkAllForWrapping
(
editor
);
ME_WrapMarkedParagraphs
(
editor
);
ME_UpdateScrollBar
(
editor
);
ME_Repaint
(
editor
);
if
(
editor
->
bRedraw
)
{
ME_WrapMarkedParagraphs
(
editor
);
ME_UpdateScrollBar
(
editor
);
ME_Repaint
(
editor
);
}
}
int
ME_twips2pointsX
(
ME_Context
*
c
,
int
x
)
...
...
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