Fixed vis region handling broken by last change.
This commit is contained in:
parent
800dbf2994
commit
7ac10d5007
|
@ -1202,10 +1202,9 @@ static HGDIOBJ select_bitmap( DC *dc, HBITMAP handle )
|
||||||
dc->totalExtent.top = 0;
|
dc->totalExtent.top = 0;
|
||||||
dc->totalExtent.right = bitmap->bitmap.bmWidth;
|
dc->totalExtent.right = bitmap->bitmap.bmWidth;
|
||||||
dc->totalExtent.bottom = bitmap->bitmap.bmHeight;
|
dc->totalExtent.bottom = bitmap->bitmap.bmHeight;
|
||||||
if (dc->hVisRgn)
|
dc->flags &= ~DC_DIRTY;
|
||||||
SetRectRgn( dc->hVisRgn, 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight);
|
SetRectRgn( dc->hVisRgn, 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight);
|
||||||
else
|
CLIPPING_UpdateGCRegion( dc );
|
||||||
dc->hVisRgn = CreateRectRgn( 0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight );
|
|
||||||
|
|
||||||
if (dc->bitsPerPixel != bitmap->bitmap.bmBitsPixel)
|
if (dc->bitsPerPixel != bitmap->bitmap.bmBitsPixel)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue