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:
parent
d6cbc01680
commit
34a4b91e78
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue