Commit d3d24770 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

rcPaint has to be returned in logical coordinates but was intersected

with a client rectangle in device coordinates.
parent 8b47ec24
......@@ -327,9 +327,12 @@ HDC16 WINAPI BeginPaint16( HWND16 hwnd, LPPAINTSTRUCT16 lps )
than the window itself, so we need to intersect the cliprect with
the window */
/* GetClipBox16( lps->hdc, &lps->rcPaint );*/
GetClipBox16( lps->hdc, &clipRect );
GetClientRect16( hwnd, &clientRect );
/* The rect obtained by GetClipBox is in logical, so make the client in logical to*/
DPtoLP16(lps->hdc, (LPPOINT16) &clientRect, 2);
IntersectRect16(&lps->rcPaint, &clientRect, &clipRect);
TRACE_(win)("box = (%i,%i - %i,%i)\n", lps->rcPaint.left, lps->rcPaint.top,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment