Changeset 10434 for trunk/src


Ignore:
Timestamp:
Jan 30, 2004, 11:20:00 PM (22 years ago)
Author:
bird
Message:

#682: Test for DEBUG_LOGGING not DEBUG.

Location:
trunk/src/gdi32
Files:
2 edited

Legend:

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

    r10374 r10434  
    1 /* $Id: gdi32.cpp,v 1.91 2004-01-11 11:42:15 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.92 2004-01-30 22:19:59 bird Exp $ */
    22
    33/*
     
    171171//******************************************************************************
    172172//******************************************************************************
    173 HPEN WIN32API ExtCreatePen(DWORD dwPenStyle, DWORD dwWidth, const LOGBRUSH *lplb, 
     173HPEN WIN32API ExtCreatePen(DWORD dwPenStyle, DWORD dwWidth, const LOGBRUSH *lplb,
    174174                           DWORD dwStyleCount, const DWORD *lpStyle)
    175175{
     
    216216{
    217217 HBRUSH hBrush;
    218  
     218
    219219    hBrush = O32_CreateHatchBrush(fnStyle, clrref);
    220220    if(hBrush) STATS_CreateHatchBrush(hBrush, fnStyle, clrref);
     
    265265  {
    266266      dprintf(("GDI32: CreateDIBPatternBrush (%08xh, %08xh) %x (%d,%d) bpp %d",
    267                 hglbDIBPacked, fuColorSpec, lpMem, lpMem->bmiHeader.biWidth, 
     267                hglbDIBPacked, fuColorSpec, lpMem, lpMem->bmiHeader.biWidth,
    268268                lpMem->bmiHeader.biHeight, lpMem->bmiHeader.biBitCount));
    269269
     
    541541    return rc;
    542542}
    543 #ifdef DEBUG
     543#ifdef DEBUG_LOGGING
    544544//******************************************************************************
    545545//******************************************************************************
     
    760760       dprintf(("WARNING: GDI32: RectVisible %x lpRect == NULL!"));
    761761       return FALSE;
    762     }   
     762    }
    763763    dprintf(("GDI32: RectVisible %x (%d,%d)(%d,%d)", hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
    764764    return O32_RectVisible(hdc, lpRect);
  • trunk/src/gdi32/region.cpp

    r10374 r10434  
    1 /* $Id: region.cpp,v 1.36 2004-01-11 11:42:21 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.37 2004-01-30 22:20:00 bird Exp $ */
    22
    33/*
     
    1515 *       We do not map the Win32 visible region to the PM visible region
    1616 *       as that's rather annoying.
    17  *       Instead we use the intersection of the win32 visible and win32 clip 
     17 *       Instead we use the intersection of the win32 visible and win32 clip
    1818 *       region for the PM clip region.
    1919 *       The original Win32 clip region is saved in pHps->hrgnWin32Clip.
    2020 *       The Win32 visible region is saved in pHps->hrgnWinVis.
    21  * 
     21 *
    2222 *
    2323 *
     
    426426//
    427427// Parameters:
    428 // 
     428//
    429429// pDCData pHps         - presentation space structure
    430430// HRGN hrgn            - region handle (GPI)
     
    439439//       We do not map the Win32 visible region to the PM visible region
    440440//       as that's rather annoying.
    441 //       Instead we use the intersection of the win32 visible and win32 clip 
     441//       Instead we use the intersection of the win32 visible and win32 clip
    442442//       region for the PM clip region.
    443443//       The Win32 clip region is saved in pHps->hrgnWin32Clip.
     
    456456    }
    457457
    458     if(hrgn != NULLHANDLE) 
     458    if(hrgn != NULLHANDLE)
    459459    {
    460460        hrgnNewClip = GpiCreateRegion(pHps->hps, 1, &rectl);
     
    496496//
    497497// Parameters:
    498 // 
     498//
    499499// pDCData pHps         - presentation space structure
    500500// HRGN hrgn            - region handle (Win32)
     
    510510//       We do not map the Win32 visible region to the PM visible region
    511511//       as that's rather annoying.
    512 //       Instead we use the intersection of the win32 visible and win32 clip 
     512//       Instead we use the intersection of the win32 visible and win32 clip
    513513//       region for the PM clip region.
    514514//       The Win32 clip region is saved in pHps->hrgnWin32Clip.
     
    518518INT WIN32API GdiCombineVisRgn(pDCData pHps, HRGN hrgn, INT operation)
    519519{
    520 #ifdef DEBUG
     520#ifdef DEBUG_LOGGING
    521521    HRGN hrgn1 = hrgn;
    522522#endif
     
    541541
    542542    //If there is no visible region, then create one that covers the whole DC
    543     if(pHps->hrgnWinVis == NULLHANDLE) 
     543    if(pHps->hrgnWinVis == NULLHANDLE)
    544544    {
    545545         RECTL rectl = {0, 0, hdcWidth(0, pHps), hdcHeight(0, pHps)};
     
    580580//
    581581// Parameters:
    582 // 
     582//
    583583// pDCData pHps         - presentation space structure
    584584// HRGN hrgn            - region handle (GPI)
     
    594594//       We do not map the Win32 visible region to the PM visible region
    595595//       as that's rather annoying.
    596 //       Instead we use the intersection of the win32 visible and win32 clip 
     596//       Instead we use the intersection of the win32 visible and win32 clip
    597597//       region for the PM clip region.
    598598//       The Win32 clip region is saved in pHps->hrgnWin32Clip.
     
    614614    }
    615615
    616     if(hrgn == NULLHANDLE) 
    617     {
    618         if(pHps->hrgnWin32Clip != NULL) 
     616    if(hrgn == NULLHANDLE)
     617    {
     618        if(pHps->hrgnWin32Clip != NULL)
    619619        {
    620620            //Only reset the path if both the visible and clip regions are zero
     
    625625                hrgnNewClip = NULLHANDLE;
    626626            }
    627             else 
     627            else
    628628            {//set PM clip region to Win32 visible region
    629629                lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, pHps->hrgnWinVis, NULLHANDLE, CRGN_COPY);
     
    661661        goto failure;
    662662    }
    663     // If there's no visible region (meaning entire DC is visible), then just set 
     663    // If there's no visible region (meaning entire DC is visible), then just set
    664664    // the GPI clip region to the win32 clip region
    665     if (pHps->hrgnWinVis == NULLHANDLE) 
     665    if (pHps->hrgnWinVis == NULLHANDLE)
    666666    {
    667667         lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, hrgn, NULLHANDLE, CRGN_COPY);
     
    704704//
    705705// Parameters:
    706 // 
     706//
    707707// pDCData pHps         - presentation space structure
    708708//
     
    737737//
    738738// Parameters:
    739 // 
     739//
    740740// pDCData pHps         - presentation space structure
    741741// HRGN hrgn            - region handle (GPI)
     
    753753int WIN32API ExtSelectClipRgn(HDC hdc, HRGN hrgn, int mode)
    754754{
    755 #ifdef DEBUG
     755#ifdef DEBUG_LOGGING
    756756   HRGN hrgn1 = hrgn;
    757757#endif
     
    869869}
    870870//******************************************************************************
    871 // The GetClipBox function retrieves the dimensions of the tightest bounding 
    872 // rectangle that can be drawn around the current visible area on the device. 
    873 // The visible area is defined by the current clipping region or clip path, as well 
     871// The GetClipBox function retrieves the dimensions of the tightest bounding
     872// rectangle that can be drawn around the current visible area on the device.
     873// The visible area is defined by the current clipping region or clip path, as well
    874874// as any overlapping windows.
    875875//
     
    954954   LONG       lComplexity = RGN_RECT;
    955955   HRGN       hrgnClip = NULL, hrgnTemp;
    956 #ifdef DEBUG
     956#ifdef DEBUG_LOGGING
    957957   HRGN hrgn1 = hrgn;
    958958#endif
     
    985985}
    986986//******************************************************************************
    987 // The GetRandomRgn function copies the system clipping region of a specified 
     987// The GetRandomRgn function copies the system clipping region of a specified
    988988// device context to a specific region.
    989989// It returns the visible region of the specified device context in screen
     
    992992// VALUE = 1: This undocumented value will return the current Clip Region contained in the DC.
    993993// VALUE = 2: This undocumented value will return the current Meta Region contained in the DC.
    994 // VALUE = 3: This undocumented value will return the intersection of the Clip Region and Meta Region. 
    995 // VALUE = 4, SYSRGN: The only value that is documented and defined for this function. 
     994// VALUE = 3: This undocumented value will return the intersection of the Clip Region and Meta Region.
     995// VALUE = 4, SYSRGN: The only value that is documented and defined for this function.
    996996//                    This value returns the System Region
    997997//******************************************************************************
     
    10581058
    10591059    //Ok, success. Now update the cached win32 clip region
    1060     if(pHps->hrgnWin32Clip != NULLHANDLE) 
     1060    if(pHps->hrgnWin32Clip != NULLHANDLE)
    10611061    {
    10621062        HRGN hrgnClipRect = GpiCreateRegion(pHps->hps, 1, &rectl);
     
    11241124
    11251125    //Ok, success. Now update the cached win32 clip region
    1126     if(pHps->hrgnWin32Clip != NULLHANDLE) 
     1126    if(pHps->hrgnWin32Clip != NULLHANDLE)
    11271127    {
    11281128        HRGN hrgnClipRect = GpiCreateRegion(pHps->hps, 1, &rectl);
     
    11961196//******************************************************************************
    11971197//******************************************************************************
    1198 HRGN WIN32API CreatePolyPolygonRgn(const POINT *lppt, const int *pPolyCount, 
     1198HRGN WIN32API CreatePolyPolygonRgn(const POINT *lppt, const int *pPolyCount,
    11991199                                   int  nCount, int fnPolyFillMode)
    12001200{
     
    13181318//******************************************************************************
    13191319//******************************************************************************
    1320 HRGN WIN32API ExtCreateRegion(const XFORM_W * pXform, DWORD count, 
     1320HRGN WIN32API ExtCreateRegion(const XFORM_W * pXform, DWORD count,
    13211321                              const RGNDATA * pData)
    13221322{
     
    15221522    ULONG lComplexity;
    15231523    LONG  mode;
    1524 #ifdef DEBUG
     1524#ifdef DEBUG_LOGGING
    15251525   HRGN hrgn1 = hrgnDest;
    15261526   HRGN hrgn2 = hrgnSrc1;
     
    15731573{
    15741574   LONG lEquality;
    1575 #ifdef DEBUG
     1575#ifdef DEBUG_LOGGING
    15761576   HRGN hrgnt1 = hrgn1;
    15771577   HRGN hrgnt2 = hrgn2;
     
    16041604{
    16051605   BOOL    result = FALSE;
    1606 #ifdef DEBUG
     1606#ifdef DEBUG_LOGGING
    16071607   HRGN      hrgn1 = hrgn;
    16081608#endif
     
    16271627ULONG WIN32API GetRegionData( HRGN  hrgn, ULONG count, PRGNDATA pData)
    16281628{
    1629 #ifdef DEBUG
     1629#ifdef DEBUG_LOGGING
    16301630   HRGN      hrgn1 = hrgn;
    16311631#endif
     
    16941694   BOOL      success;
    16951695   LONG      lComplexity;
    1696 #ifdef DEBUG
     1696#ifdef DEBUG_LOGGING
    16971697   HRGN      hrgn1 = hrgn;
    16981698#endif
     
    17291729BOOL WIN32API InvertRgn( HDC  hdc, HRGN  hrgn)
    17301730{
    1731 #ifdef DEBUG
     1731#ifdef DEBUG_LOGGING
    17321732    HRGN      hrgn1 = hrgn;
    17331733#endif
     
    17821782{
    17831783   LONG   lComplexity;
    1784 #ifdef DEBUG
     1784#ifdef DEBUG_LOGGING
    17851785   HRGN      hrgn1 = hrgn;
    17861786#endif
     
    18301830{
    18311831    HBRUSH hbrushRestore = 0;
    1832 #ifdef DEBUG
     1832#ifdef DEBUG_LOGGING
    18331833    HRGN   hrgn1 = hrgn;
    18341834#endif
     
    18671867        SelectObject(hdc, hbrushRestore);
    18681868
    1869     if(lHits != GPI_ERROR) 
     1869    if(lHits != GPI_ERROR)
    18701870        DIBSECTION_MARK_INVALID(hdc);
    18711871
     
    18791879 BOOL   success;
    18801880 HBRUSH hbrushRestore = 0;
    1881 #ifdef DEBUG
     1881#ifdef DEBUG_LOGGING
    18821882    HRGN   hrgn1 = hrgn;
    18831883#endif
     
    19341934   BOOL      success;
    19351935   LONG      lInside;
    1936 #ifdef DEBUG
     1936#ifdef DEBUG_LOGGING
    19371937   HRGN      hrgn1 = hrgn;
    19381938#endif
     
    19671967   BOOL      success;
    19681968   LONG      lInside;
    1969 #ifdef DEBUG
     1969#ifdef DEBUG_LOGGING
    19701970   HRGN      hrgn1 = hrgn;
    19711971#endif
Note: See TracChangeset for help on using the changeset viewer.