Changeset 9456 for trunk/src


Ignore:
Timestamp:
Dec 4, 2002, 11:24:02 AM (23 years ago)
Author:
sandervl
Message:

extra logging

File:
1 edited

Legend:

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

    r9429 r9456  
    1 /* $Id: region.cpp,v 1.30 2002-11-26 10:53:12 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.31 2002-12-04 10:24:02 sandervl Exp $ */
    22
    33/*
     
    5858
    5959HPS hpsRegion = 0;
     60
     61
     62#ifdef DEBUG
     63//#define dprintfRegion(a,b,c) if(DbgEnabledLvl2GDI32[DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c)
     64//#define dprintfRegion(a,b,c) dprintfRegion1(a,b,c)
     65
     66void dprintfRegion(HPS hps, HRGN hrgnClip)
     67{
     68 RGNRECT rgnRect = {0, 16, 0, RECTDIR_LFRT_TOPBOT};
     69 RECTL   rectRegion[16];
     70 APIRET  rc;
     71
     72   dprintf(("dprintfRegion %x", hps));
     73   rc = GpiQueryRegionRects(hps, hrgnClip, NULL, &rgnRect, &rectRegion[0]);
     74   for(int i=0;i<rgnRect.crcReturned;i++) {
     75        dprintf(("(%d,%d)(%d,%d)", rectRegion[i].xLeft, rectRegion[i].yBottom, rectRegion[i].xRight, rectRegion[i].yTop));
     76   }
     77}
     78#else
     79#define dprintfRegion(a,c)
     80#endif
    6081
    6182//******************************************************************************
     
    14651486    interpretRegionAs(pHps, NULL, hrgn, AS_WORLD);
    14661487
     1488    dprintfRegion(pHps->hps, pHps->hrgnHDC);
     1489
    14671490    success = GpiPaintRegion(pHps->hps, pHps->hrgnHDC);
    14681491
Note: See TracChangeset for help on using the changeset viewer.