14 Jan
2009
14 Jan
'09
1:21 p.m.
Dylan Smith <dylan.ah.smith(a)gmail.com> writes:
@@ -29,6 +29,17 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, BOOL bOnlyNew, const RECT * ME_Context c; int yoffset; int ys, ye; + HRGN oldRgn, clipRgn; + + oldRgn = CreateRectRgn(0, 0, 0, 0); + if (!GetClipRgn(hDC, oldRgn)) + { + DeleteObject(oldRgn); + oldRgn = NULL; + } + clipRgn = CreateRectRgnIndirect(rcUpdate); + ExtSelectClipRgn(hDC, clipRgn, RGN_AND); + DeleteObject(clipRgn);
IntersectClipRect would be a lot easier. -- Alexandre Julliard julliard(a)winehq.org