Fixed vis region handling broken by last change.

This commit is contained in:
Alexandre Julliard 2002-05-07 18:30:19 +00:00
parent 800dbf2994
commit 7ac10d5007
1 changed files with 3 additions and 4 deletions

View File

@ -1202,10 +1202,9 @@ static HGDIOBJ select_bitmap( DC *dc, HBITMAP handle )
dc->totalExtent.top = 0;
dc->totalExtent.right = bitmap->bitmap.bmWidth;
dc->totalExtent.bottom = bitmap->bitmap.bmHeight;
if (dc->hVisRgn)
SetRectRgn( dc->hVisRgn, 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight);
else
dc->hVisRgn = CreateRectRgn( 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight );
dc->flags &= ~DC_DIRTY;
SetRectRgn( dc->hVisRgn, 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight);
CLIPPING_UpdateGCRegion( dc );
if (dc->bitsPerPixel != bitmap->bitmap.bmBitsPixel)
{