Commit 34a4b91e authored by Dave Pickles's avatar Dave Pickles Committed by Alexandre Julliard

GetUpdateRect should return client coordinates unless the window was

created with the CS_OWNDC style and the mapping mode is not MM_TEXT, in which case the result should be in logical coordinates.
parent d6cbc016
......@@ -643,6 +643,13 @@ BOOL32 WINAPI GetUpdateRect32( HWND32 hwnd, LPRECT32 rect, BOOL32 erase )
if (GetUpdateRgn32( hwnd, hrgn, erase ) == ERROR) return FALSE;
GetRgnBox32( hrgn, rect );
DeleteObject32( hrgn );
if (wndPtr->class->style & CS_OWNDC)
{
if (GetMapMode32(wndPtr->dce->hDC) != MM_TEXT)
{
DPtoLP32 (wndPtr->dce->hDC, (LPPOINT32)rect, 2);
}
}
}
else SetRectEmpty32( rect );
}
......
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