Ignore:
Timestamp:
Dec 7, 2000, 12:59:45 PM (25 years ago)
Author:
sandervl
Message:

BeginPaint fix (selectClientArea after GpiSelectClipRgn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r4674 r4762  
    1 /* $Id: dc.cpp,v 1.79 2000-11-22 13:44:49 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.80 2000-12-07 11:59:45 sandervl Exp $ */
    22
    33/*
     
    718718        WinOffsetRect(NULL, &rectlClip, -rectlClient.xLeft, -rectlClient.yBottom);
    719719
    720         //change presentation space for client window
    721         selectClientArea(wnd, pHps);
    722 
    723720        //clip update region with client window rectangle
    724721        HRGN hrgnClient = GpiCreateRegion(pHps->hps, 1, &rectlClient);
     
    734731        //set clip region
    735732        lComplexity = GpiSetClipRegion(pHps->hps, hrgnClip, &hrgnOldClip);
     733
     734        //change presentation space for client window
     735        //NOTE: MUST do this after GpiSetClipRegion call!
     736        //      When a window with CS_OWNDC looses focus, for some reason
     737        //      GpiSetClipRegion resets the window dc origin back to (0,0)
     738        selectClientArea(wnd, pHps);
    736739
    737740        GpiQueryClipBox(pHps->hps, &rectl);
Note: See TracChangeset for help on using the changeset viewer.