Ignore:
Timestamp:
Sep 2, 2000, 10:30:11 AM (25 years ago)
Author:
sandervl
Message:

Commented out winzip button change in BeginPaint (fixes repaint problems) + implemented IsZoomed)

File:
1 edited

Legend:

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

    r3888 r4147  
    1 /* $Id: dc.cpp,v 1.69 2000-07-22 12:51:59 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.70 2000-09-02 08:30:09 sandervl Exp $ */
    22
    33/*
     
    546546//******************************************************************************
    547547//******************************************************************************
     548#ifdef DEBUG
     549#define dprintfRegion(a,b,c) if(DbgEnabledLvl2[DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c)
     550
     551void dprintfRegion1(HPS hps, HWND hWnd, HRGN hrgnClip)
     552{
     553 RGNRECT rgnRect = {0, 16, 0, RECTDIR_LFRT_TOPBOT};
     554 RECTL   rectRegion[16];
     555 APIRET  rc;
     556
     557   dprintf(("dprintfRegion %x %x", hWnd, hps));
     558   rc = GpiQueryRegionRects(hps, hrgnClip, NULL, &rgnRect, &rectRegion[0]);
     559   for(int i=0;i<rgnRect.crcReturned;i++) {
     560        dprintf(("(%d,%d)(%d,%d)", rectRegion[i].xLeft, rectRegion[i].yBottom, rectRegion[i].xRight, rectRegion[i].yTop));
     561   }
     562}
     563#else
     564#define dprintfRegion(a,b,c)
     565#endif
     566//******************************************************************************
     567//******************************************************************************
    548568HDC WIN32API BeginPaint (HWND hWnd, PPAINTSTRUCT_W lpps)
    549569{
     
    592612   }
    593613
    594    //testest
    595    if(hwnd == 0x6800000f) {
    596         lComplexity = 1;
    597    }
    598 
    599614   if(WinQueryUpdateRect(hwndClient, &rectl) == FALSE) {
    600615        memset(&rectl, 0, sizeof(rectl));
     
    615630
    616631        //Query update region
     632#if 1
     633        HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectl);
     634#else
    617635        HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectlClip);
    618636        WinQueryUpdateRegion(hwndClient, hrgnClip);
     637        dprintfRegion(pHps->hps, hWnd, hrgnClip);
     638        WinQueryVisibleRegion(hwndClient, hrgnClip);
     639        dprintfRegion(pHps->hps, hWnd, hrgnClip);
     640        WinQueryUpdateRegion(hwndClient, hrgnClip);
     641#endif
    619642        WinValidateRegion(hwndClient, hrgnClip, FALSE);
    620643
Note: See TracChangeset for help on using the changeset viewer.