From 7ac10d5007b19d50c1e2f5f266a28684815b6add Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 7 May 2002 18:30:19 +0000 Subject: [PATCH] Fixed vis region handling broken by last change. --- objects/gdiobj.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/objects/gdiobj.c b/objects/gdiobj.c index a5f9683fea9..9d464ddac4c 100644 --- a/objects/gdiobj.c +++ b/objects/gdiobj.c @@ -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) {