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.
This commit is contained in:
Dave Pickles 1999-02-17 12:36:26 +00:00 committed by Alexandre Julliard
parent d6cbc01680
commit 34a4b91e78
1 changed files with 7 additions and 0 deletions

View File

@ -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 );
}