Ignore:
Timestamp:
Oct 9, 2000, 7:26:55 PM (25 years ago)
Author:
sandervl
Message:

mdi fix + ShowOwnedPopups implemented

File:
1 edited

Legend:

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

    r4455 r4463  
    1 /* $Id: dc.cpp,v 1.73 2000-10-08 14:09:40 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.74 2000-10-09 17:26:47 sandervl Exp $ */
    22
    33/*
     
    330330   pHps->isClient = FALSE;
    331331
     332#ifdef DEBUG
    332333   GreGetDCOrigin(pHps->hps, &point);
     334#endif
    333335
    334336   if(pHps->isClientArea)
     
    399401        rcl.yTop    += rcltemp.yBottom;
    400402        rcl.yBottom += rcltemp.yBottom;
    401    }
    402    pHps->ptlOrigin.x = rcltemp.xLeft;
    403    pHps->ptlOrigin.y = rcltemp.yBottom;
     403
     404        pHps->ptlOrigin.x = rcltemp.xLeft;
     405        pHps->ptlOrigin.y = rcltemp.yBottom;
     406   }
    404407 
    405408   dprintf2(("selectClientArea %x: (%d,%d) -> (%d,%d)", window->getWindowHandle(), rcltemp.xLeft, rcltemp.yBottom, rcl.xLeft, rcl.yBottom));
     
    616619        dprintf (("USER32: WARNING: WinQueryUpdateRect failed (error or no update rectangle)!!"));
    617620
    618         selectClientArea(wnd, pHps);
    619 
    620621        HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectl);
    621622        GpiSetClipRegion(pHps->hps, hrgnClip, &hrgnOldClip);
     623
     624        selectClientArea(wnd, pHps);
    622625
    623626        //save old clip region (restored for CS_OWNDC windows in EndPaint)
     
    669672   WinShowTrackRect(wnd->getOS2WindowHandle(), FALSE);
    670673
     674#ifdef DEBUG
     675   POINTL point;
     676   GreGetDCOrigin(pHps->hps, &point);
     677   dprintf(("dc origin (%d,%d)", point.x, point.y));
     678#endif
     679
    671680   if(wnd->needsEraseBkgnd() && lComplexity != RGN_NULL) {
    672681        wnd->setEraseBkgnd(FALSE);
     
    674683   }
    675684   else lpps->fErase = TRUE;
     685
     686#ifdef DEBUG
     687   GreGetDCOrigin(pHps->hps, &point);
     688   dprintf(("dc origin (%d,%d)", point.x, point.y));
     689#endif
    676690
    677691   lpps->hdc    = (HDC)pHps->hps;
Note: See TracChangeset for help on using the changeset viewer.