mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fixed vis region handling broken by last change.
This commit is contained in:
parent
800dbf2994
commit
7ac10d5007
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue