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
93b63487
Commit
93b63487
authored
Mar 23, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fill the selection bar.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a19cecac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
paint.c
dlls/riched20/paint.c
+13
-9
No files found.
dlls/riched20/paint.c
View file @
93b63487
...
...
@@ -32,6 +32,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
ME_Cell
*
cell
;
int
ys
,
ye
;
HRGN
oldRgn
;
RECT
rc
;
HBRUSH
brush
=
CreateSolidBrush
(
ITextHost_TxGetSysColor
(
editor
->
texthost
,
COLOR_WINDOW
)
);
ME_InitContext
(
&
c
,
editor
,
hDC
);
...
...
@@ -73,21 +74,24 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
para
=
para_next
(
para
);
}
if
(
c
.
pt
.
y
+
editor
->
nTotalLength
<
c
.
rcView
.
bottom
)
{
/* Fill space after the end of the text. */
RECT
rc
;
{
/* space after the end of the text */
rc
.
top
=
c
.
pt
.
y
+
editor
->
nTotalLength
;
rc
.
left
=
c
.
rcView
.
left
;
rc
.
bottom
=
c
.
rcView
.
bottom
;
rc
.
right
=
c
.
rcView
.
right
;
IntersectRect
(
&
rc
,
&
rc
,
rcUpdate
);
if
(
!
IsRectEmpty
(
&
rc
))
if
(
IntersectRect
(
&
rc
,
&
rc
,
rcUpdate
))
PatBlt
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
PATCOPY
);
}
if
(
editor
->
nTotalLength
!=
editor
->
nLastTotalLength
||
editor
->
nTotalWidth
!=
editor
->
nLastTotalWidth
)
if
(
editor
->
selofs
)
{
/* selection bar */
rc
.
left
=
c
.
rcView
.
left
-
editor
->
selofs
;
rc
.
top
=
c
.
rcView
.
top
;
rc
.
right
=
c
.
rcView
.
left
;
rc
.
bottom
=
c
.
rcView
.
bottom
;
if
(
IntersectRect
(
&
rc
,
&
rc
,
rcUpdate
))
PatBlt
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
PATCOPY
);
}
if
(
editor
->
nTotalLength
!=
editor
->
nLastTotalLength
||
editor
->
nTotalWidth
!=
editor
->
nLastTotalWidth
)
ME_SendRequestResize
(
editor
,
FALSE
);
editor
->
nLastTotalLength
=
editor
->
nTotalLength
;
editor
->
nLastTotalWidth
=
editor
->
nTotalWidth
;
...
...
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