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
01ee55a8
Commit
01ee55a8
authored
Jan 14, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Jan 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Clip painting to formatting rectangle.
parent
d2b13825
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
paint.c
dlls/riched20/paint.c
+16
-1
No files found.
dlls/riched20/paint.c
View file @
01ee55a8
...
...
@@ -31,6 +31,16 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT *
ME_Context
c
;
int
yoffset
;
int
ys
,
ye
;
HRGN
oldRgn
;
oldRgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
!
GetClipRgn
(
hDC
,
oldRgn
))
{
DeleteObject
(
oldRgn
);
oldRgn
=
NULL
;
}
IntersectClipRect
(
hDC
,
rcUpdate
->
left
,
rcUpdate
->
top
,
rcUpdate
->
right
,
rcUpdate
->
bottom
);
editor
->
nSequence
++
;
yoffset
=
ME_GetYScrollPos
(
editor
);
...
...
@@ -107,6 +117,10 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT *
ME_SendRequestResize
(
editor
,
FALSE
);
editor
->
nLastTotalLength
=
editor
->
nTotalLength
;
ME_DestroyContext
(
&
c
,
NULL
);
SelectClipRgn
(
hDC
,
oldRgn
);
if
(
oldRgn
)
DeleteObject
(
oldRgn
);
}
void
ME_Repaint
(
ME_TextEditor
*
editor
)
...
...
@@ -1037,7 +1051,8 @@ static void ME_Scroll(ME_TextEditor *editor, int value, int type)
if
(
abs
(
nActualScroll
)
>
editor
->
sizeWindow
.
cy
)
InvalidateRect
(
editor
->
hWnd
,
NULL
,
TRUE
);
else
ScrollWindowEx
(
editor
->
hWnd
,
0
,
nActualScroll
,
NULL
,
NULL
,
NULL
,
NULL
,
SW_INVALIDATE
);
ScrollWindowEx
(
editor
->
hWnd
,
0
,
nActualScroll
,
&
editor
->
rcFormat
,
&
editor
->
rcFormat
,
NULL
,
NULL
,
SW_INVALIDATE
);
ME_Repaint
(
editor
);
hWnd
=
editor
->
hWnd
;
...
...
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