Ignore:
Timestamp:
Nov 15, 2000, 2:56:46 PM (25 years ago)
Author:
sandervl
Message:

(Ext)SelectClipRgn fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/region.cpp

    r4557 r4596  
    1 /* $Id: region.cpp,v 1.16 2000-11-05 18:48:22 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.17 2000-11-15 13:56:46 sandervl Exp $ */
    22
    33/*
     
    374374    }
    375375
     376    dprintf(("SelectClipRgn: %x %x", hdc, hrgn));
     377
    376378    if(hrgn)
    377379    {
     
    404406        if (lComplexity != RGN_ERROR )
    405407        {
    406             dprintf(("SelectClipRgn: %x %x", hdc, hrgn));
    407408            if(hrgnOldClip)
    408409                GpiDestroyRegion(pHps->hps, hrgnOldClip);
     
    410411            //todo: metafile recording
    411412            SetLastError(ERROR_SUCCESS_W);
     413
     414            //SvL: Must check if origin changed here. Sometimes happens when
     415            //     window looses focus. (don't know why....)
     416            if(pHps->isClient)
     417                selectClientArea(pHps);
    412418            return lComplexity;
    413419        }
     
    518524        lComplexity = GpiSetClipRegion(pHps->hps, hrgnCurrent, &hrgnOld);
    519525        SetLastError(ERROR_SUCCESS_W);
     526
     527        //SvL: Must check if origin changed here. Sometimes happens when
     528        //     window looses focus. (don't know why....)
     529        if(pHps->isClient)
     530            selectClientArea(pHps);
     531
    520532        if (lComplexity != RGN_ERROR)
    521533            return lComplexity;
Note: See TracChangeset for help on using the changeset viewer.