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
f1f8e4d1
Commit
f1f8e4d1
authored
Mar 29, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Destroy the context before sending the notification.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d47be63f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
paint.c
dlls/riched20/paint.c
+6
-7
No files found.
dlls/riched20/paint.c
View file @
f1f8e4d1
...
...
@@ -104,17 +104,16 @@ void editor_draw( ME_TextEditor *editor, HDC hDC, const RECT *update )
PatBlt
(
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
PATCOPY
);
}
}
DeleteObject
(
SelectObject
(
hDC
,
brush
)
);
SelectClipRgn
(
hDC
,
oldRgn
);
if
(
oldRgn
)
DeleteObject
(
oldRgn
);
ME_DestroyContext
(
&
c
);
if
(
editor
->
nTotalLength
!=
editor
->
nLastTotalLength
||
editor
->
nTotalWidth
!=
editor
->
nLastTotalWidth
)
ME_SendRequestResize
(
editor
,
FALSE
);
editor
->
nLastTotalLength
=
editor
->
nTotalLength
;
editor
->
nLastTotalWidth
=
editor
->
nTotalWidth
;
DeleteObject
(
SelectObject
(
hDC
,
brush
)
);
SelectClipRgn
(
hDC
,
oldRgn
);
if
(
oldRgn
)
DeleteObject
(
oldRgn
);
ME_DestroyContext
(
&
c
);
}
void
ME_Repaint
(
ME_TextEditor
*
editor
)
...
...
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