Ignore:
Timestamp:
Jan 11, 2004, 12:43:22 PM (22 years ago)
Author:
sandervl
Message:

Update

File:
1 edited

Legend:

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

    r10322 r10374  
    1 /* $Id: region.cpp,v 1.35 2003-11-14 17:31:47 sandervl Exp $ */
     1/* $Id: region.cpp,v 1.36 2004-01-11 11:42:21 sandervl Exp $ */
    22
    33/*
     
    699699}
    700700//******************************************************************************
     701// GdiCopyClipRgn
     702//
     703// Duplicate the GPI region
     704//
     705// Parameters:
     706//
     707// pDCData pHps         - presentation space structure
     708//
     709// Returns:     - NULL     -> failure
     710//              - <> NULL  -> GPI handle of copied region
     711//
     712//******************************************************************************
     713HRGN GdiCopyClipRgn(pDCData pHps)
     714{
     715    HRGN hrgnNewClip;
     716    LONG lComplexity;
     717    RECTL rectl = {0, 0, 1, 1};
     718
     719    hrgnNewClip = GpiCreateRegion(pHps->hps, 1, &rectl);
     720    if(hrgnNewClip == NULLHANDLE) {
     721        dprintf(("ERROR: GdiCopyClipRgn: GpiCreateRegion failed!!"));
     722        DebugInt3();
     723        return 0;
     724    }
     725    lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, pHps->hrgnWin32Clip, NULLHANDLE, CRGN_COPY);
     726    if (lComplexity != RGN_ERROR)
     727    {
     728        return TRUE;
     729    }
     730    DebugInt3();
     731    return FALSE;
     732}
     733//******************************************************************************
     734// GdiDestroyRgn
     735//
     736// Destroy the GPI region
     737//
     738// Parameters:
     739//
     740// pDCData pHps         - presentation space structure
     741// HRGN hrgn            - region handle (GPI)
     742//
     743// Returns:     - FALSE -> failure
     744//              - TRUE  -> success
     745//
     746//******************************************************************************
     747BOOL GdiDestroyRgn(pDCData pHps, HRGN hrgn)
     748{
     749    return GpiDestroyRegion(pHps->hps, hrgn);
     750}
     751//******************************************************************************
    701752//******************************************************************************
    702753int WIN32API ExtSelectClipRgn(HDC hdc, HRGN hrgn, int mode)
Note: See TracChangeset for help on using the changeset viewer.