Commit d0642b53 authored by Alexandre Julliard's avatar Alexandre Julliard

Make sure the DC visible region is updated in GetClipBox.

parent 48957684
...@@ -475,8 +475,8 @@ BOOL WINAPI RectVisible( HDC hdc, const RECT* rect ) ...@@ -475,8 +475,8 @@ BOOL WINAPI RectVisible( HDC hdc, const RECT* rect )
INT16 WINAPI GetClipBox16( HDC16 hdc, LPRECT16 rect ) INT16 WINAPI GetClipBox16( HDC16 hdc, LPRECT16 rect )
{ {
int ret; int ret;
DC *dc = DC_GetDCPtr( hdc ); DC *dc = DC_GetDCUpdate( hdc );
if (!dc) return ERROR; if (!dc) return ERROR;
ret = GetRgnBox16( dc->hGCClipRgn, rect ); ret = GetRgnBox16( dc->hGCClipRgn, rect );
rect->left -= dc->DCOrgX; rect->left -= dc->DCOrgX;
rect->right -= dc->DCOrgX; rect->right -= dc->DCOrgX;
...@@ -495,8 +495,8 @@ INT16 WINAPI GetClipBox16( HDC16 hdc, LPRECT16 rect ) ...@@ -495,8 +495,8 @@ INT16 WINAPI GetClipBox16( HDC16 hdc, LPRECT16 rect )
INT WINAPI GetClipBox( HDC hdc, LPRECT rect ) INT WINAPI GetClipBox( HDC hdc, LPRECT rect )
{ {
INT ret; INT ret;
DC *dc = DC_GetDCPtr( hdc ); DC *dc = DC_GetDCUpdate( hdc );
if (!dc) return ERROR; if (!dc) return ERROR;
ret = GetRgnBox( dc->hGCClipRgn, rect ); ret = GetRgnBox( dc->hGCClipRgn, rect );
rect->left -= dc->DCOrgX; rect->left -= dc->DCOrgX;
rect->right -= dc->DCOrgX; rect->right -= dc->DCOrgX;
......
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