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
a19cecac
Commit
a19cecac
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: Explicitly select the background brush.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
393b18ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
paint.c
dlls/riched20/paint.c
+5
-1
No files found.
dlls/riched20/paint.c
View file @
a19cecac
...
...
@@ -32,6 +32,9 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
ME_Cell
*
cell
;
int
ys
,
ye
;
HRGN
oldRgn
;
HBRUSH
brush
=
CreateSolidBrush
(
ITextHost_TxGetSysColor
(
editor
->
texthost
,
COLOR_WINDOW
)
);
ME_InitContext
(
&
c
,
editor
,
hDC
);
oldRgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
if
(
!
GetClipRgn
(
hDC
,
oldRgn
))
...
...
@@ -42,7 +45,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
IntersectClipRect
(
hDC
,
rcUpdate
->
left
,
rcUpdate
->
top
,
rcUpdate
->
right
,
rcUpdate
->
bottom
);
ME_InitContext
(
&
c
,
editor
,
hDC
);
brush
=
SelectObject
(
hDC
,
brush
);
SetBkMode
(
hDC
,
TRANSPARENT
);
para
=
editor_first_para
(
editor
);
...
...
@@ -89,6 +92,7 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
editor
->
nLastTotalLength
=
editor
->
nTotalLength
;
editor
->
nLastTotalWidth
=
editor
->
nTotalWidth
;
DeleteObject
(
SelectObject
(
hDC
,
brush
)
);
SelectClipRgn
(
hDC
,
oldRgn
);
if
(
oldRgn
)
DeleteObject
(
oldRgn
);
...
...
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