- Timestamp:
- Jan 30, 2004, 11:20:00 PM (22 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r10374 r10434 1 /* $Id: gdi32.cpp,v 1.9 1 2004-01-11 11:42:15 sandervlExp $ */1 /* $Id: gdi32.cpp,v 1.92 2004-01-30 22:19:59 bird Exp $ */ 2 2 3 3 /* … … 171 171 //****************************************************************************** 172 172 //****************************************************************************** 173 HPEN WIN32API ExtCreatePen(DWORD dwPenStyle, DWORD dwWidth, const LOGBRUSH *lplb, 173 HPEN WIN32API ExtCreatePen(DWORD dwPenStyle, DWORD dwWidth, const LOGBRUSH *lplb, 174 174 DWORD dwStyleCount, const DWORD *lpStyle) 175 175 { … … 216 216 { 217 217 HBRUSH hBrush; 218 218 219 219 hBrush = O32_CreateHatchBrush(fnStyle, clrref); 220 220 if(hBrush) STATS_CreateHatchBrush(hBrush, fnStyle, clrref); … … 265 265 { 266 266 dprintf(("GDI32: CreateDIBPatternBrush (%08xh, %08xh) %x (%d,%d) bpp %d", 267 hglbDIBPacked, fuColorSpec, lpMem, lpMem->bmiHeader.biWidth, 267 hglbDIBPacked, fuColorSpec, lpMem, lpMem->bmiHeader.biWidth, 268 268 lpMem->bmiHeader.biHeight, lpMem->bmiHeader.biBitCount)); 269 269 … … 541 541 return rc; 542 542 } 543 #ifdef DEBUG 543 #ifdef DEBUG_LOGGING 544 544 //****************************************************************************** 545 545 //****************************************************************************** … … 760 760 dprintf(("WARNING: GDI32: RectVisible %x lpRect == NULL!")); 761 761 return FALSE; 762 } 762 } 763 763 dprintf(("GDI32: RectVisible %x (%d,%d)(%d,%d)", hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom)); 764 764 return O32_RectVisible(hdc, lpRect); -
trunk/src/gdi32/region.cpp
r10374 r10434 1 /* $Id: region.cpp,v 1.3 6 2004-01-11 11:42:21 sandervlExp $ */1 /* $Id: region.cpp,v 1.37 2004-01-30 22:20:00 bird Exp $ */ 2 2 3 3 /* … … 15 15 * We do not map the Win32 visible region to the PM visible region 16 16 * 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 18 18 * region for the PM clip region. 19 19 * The original Win32 clip region is saved in pHps->hrgnWin32Clip. 20 20 * The Win32 visible region is saved in pHps->hrgnWinVis. 21 * 21 * 22 22 * 23 23 * … … 426 426 // 427 427 // Parameters: 428 // 428 // 429 429 // pDCData pHps - presentation space structure 430 430 // HRGN hrgn - region handle (GPI) … … 439 439 // We do not map the Win32 visible region to the PM visible region 440 440 // 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 442 442 // region for the PM clip region. 443 443 // The Win32 clip region is saved in pHps->hrgnWin32Clip. … … 456 456 } 457 457 458 if(hrgn != NULLHANDLE) 458 if(hrgn != NULLHANDLE) 459 459 { 460 460 hrgnNewClip = GpiCreateRegion(pHps->hps, 1, &rectl); … … 496 496 // 497 497 // Parameters: 498 // 498 // 499 499 // pDCData pHps - presentation space structure 500 500 // HRGN hrgn - region handle (Win32) … … 510 510 // We do not map the Win32 visible region to the PM visible region 511 511 // 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 513 513 // region for the PM clip region. 514 514 // The Win32 clip region is saved in pHps->hrgnWin32Clip. … … 518 518 INT WIN32API GdiCombineVisRgn(pDCData pHps, HRGN hrgn, INT operation) 519 519 { 520 #ifdef DEBUG 520 #ifdef DEBUG_LOGGING 521 521 HRGN hrgn1 = hrgn; 522 522 #endif … … 541 541 542 542 //If there is no visible region, then create one that covers the whole DC 543 if(pHps->hrgnWinVis == NULLHANDLE) 543 if(pHps->hrgnWinVis == NULLHANDLE) 544 544 { 545 545 RECTL rectl = {0, 0, hdcWidth(0, pHps), hdcHeight(0, pHps)}; … … 580 580 // 581 581 // Parameters: 582 // 582 // 583 583 // pDCData pHps - presentation space structure 584 584 // HRGN hrgn - region handle (GPI) … … 594 594 // We do not map the Win32 visible region to the PM visible region 595 595 // 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 597 597 // region for the PM clip region. 598 598 // The Win32 clip region is saved in pHps->hrgnWin32Clip. … … 614 614 } 615 615 616 if(hrgn == NULLHANDLE) 617 { 618 if(pHps->hrgnWin32Clip != NULL) 616 if(hrgn == NULLHANDLE) 617 { 618 if(pHps->hrgnWin32Clip != NULL) 619 619 { 620 620 //Only reset the path if both the visible and clip regions are zero … … 625 625 hrgnNewClip = NULLHANDLE; 626 626 } 627 else 627 else 628 628 {//set PM clip region to Win32 visible region 629 629 lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, pHps->hrgnWinVis, NULLHANDLE, CRGN_COPY); … … 661 661 goto failure; 662 662 } 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 664 664 // the GPI clip region to the win32 clip region 665 if (pHps->hrgnWinVis == NULLHANDLE) 665 if (pHps->hrgnWinVis == NULLHANDLE) 666 666 { 667 667 lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, hrgn, NULLHANDLE, CRGN_COPY); … … 704 704 // 705 705 // Parameters: 706 // 706 // 707 707 // pDCData pHps - presentation space structure 708 708 // … … 737 737 // 738 738 // Parameters: 739 // 739 // 740 740 // pDCData pHps - presentation space structure 741 741 // HRGN hrgn - region handle (GPI) … … 753 753 int WIN32API ExtSelectClipRgn(HDC hdc, HRGN hrgn, int mode) 754 754 { 755 #ifdef DEBUG 755 #ifdef DEBUG_LOGGING 756 756 HRGN hrgn1 = hrgn; 757 757 #endif … … 869 869 } 870 870 //****************************************************************************** 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 874 874 // as any overlapping windows. 875 875 // … … 954 954 LONG lComplexity = RGN_RECT; 955 955 HRGN hrgnClip = NULL, hrgnTemp; 956 #ifdef DEBUG 956 #ifdef DEBUG_LOGGING 957 957 HRGN hrgn1 = hrgn; 958 958 #endif … … 985 985 } 986 986 //****************************************************************************** 987 // The GetRandomRgn function copies the system clipping region of a specified 987 // The GetRandomRgn function copies the system clipping region of a specified 988 988 // device context to a specific region. 989 989 // It returns the visible region of the specified device context in screen … … 992 992 // VALUE = 1: This undocumented value will return the current Clip Region contained in the DC. 993 993 // 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. 996 996 // This value returns the System Region 997 997 //****************************************************************************** … … 1058 1058 1059 1059 //Ok, success. Now update the cached win32 clip region 1060 if(pHps->hrgnWin32Clip != NULLHANDLE) 1060 if(pHps->hrgnWin32Clip != NULLHANDLE) 1061 1061 { 1062 1062 HRGN hrgnClipRect = GpiCreateRegion(pHps->hps, 1, &rectl); … … 1124 1124 1125 1125 //Ok, success. Now update the cached win32 clip region 1126 if(pHps->hrgnWin32Clip != NULLHANDLE) 1126 if(pHps->hrgnWin32Clip != NULLHANDLE) 1127 1127 { 1128 1128 HRGN hrgnClipRect = GpiCreateRegion(pHps->hps, 1, &rectl); … … 1196 1196 //****************************************************************************** 1197 1197 //****************************************************************************** 1198 HRGN WIN32API CreatePolyPolygonRgn(const POINT *lppt, const int *pPolyCount, 1198 HRGN WIN32API CreatePolyPolygonRgn(const POINT *lppt, const int *pPolyCount, 1199 1199 int nCount, int fnPolyFillMode) 1200 1200 { … … 1318 1318 //****************************************************************************** 1319 1319 //****************************************************************************** 1320 HRGN WIN32API ExtCreateRegion(const XFORM_W * pXform, DWORD count, 1320 HRGN WIN32API ExtCreateRegion(const XFORM_W * pXform, DWORD count, 1321 1321 const RGNDATA * pData) 1322 1322 { … … 1522 1522 ULONG lComplexity; 1523 1523 LONG mode; 1524 #ifdef DEBUG 1524 #ifdef DEBUG_LOGGING 1525 1525 HRGN hrgn1 = hrgnDest; 1526 1526 HRGN hrgn2 = hrgnSrc1; … … 1573 1573 { 1574 1574 LONG lEquality; 1575 #ifdef DEBUG 1575 #ifdef DEBUG_LOGGING 1576 1576 HRGN hrgnt1 = hrgn1; 1577 1577 HRGN hrgnt2 = hrgn2; … … 1604 1604 { 1605 1605 BOOL result = FALSE; 1606 #ifdef DEBUG 1606 #ifdef DEBUG_LOGGING 1607 1607 HRGN hrgn1 = hrgn; 1608 1608 #endif … … 1627 1627 ULONG WIN32API GetRegionData( HRGN hrgn, ULONG count, PRGNDATA pData) 1628 1628 { 1629 #ifdef DEBUG 1629 #ifdef DEBUG_LOGGING 1630 1630 HRGN hrgn1 = hrgn; 1631 1631 #endif … … 1694 1694 BOOL success; 1695 1695 LONG lComplexity; 1696 #ifdef DEBUG 1696 #ifdef DEBUG_LOGGING 1697 1697 HRGN hrgn1 = hrgn; 1698 1698 #endif … … 1729 1729 BOOL WIN32API InvertRgn( HDC hdc, HRGN hrgn) 1730 1730 { 1731 #ifdef DEBUG 1731 #ifdef DEBUG_LOGGING 1732 1732 HRGN hrgn1 = hrgn; 1733 1733 #endif … … 1782 1782 { 1783 1783 LONG lComplexity; 1784 #ifdef DEBUG 1784 #ifdef DEBUG_LOGGING 1785 1785 HRGN hrgn1 = hrgn; 1786 1786 #endif … … 1830 1830 { 1831 1831 HBRUSH hbrushRestore = 0; 1832 #ifdef DEBUG 1832 #ifdef DEBUG_LOGGING 1833 1833 HRGN hrgn1 = hrgn; 1834 1834 #endif … … 1867 1867 SelectObject(hdc, hbrushRestore); 1868 1868 1869 if(lHits != GPI_ERROR) 1869 if(lHits != GPI_ERROR) 1870 1870 DIBSECTION_MARK_INVALID(hdc); 1871 1871 … … 1879 1879 BOOL success; 1880 1880 HBRUSH hbrushRestore = 0; 1881 #ifdef DEBUG 1881 #ifdef DEBUG_LOGGING 1882 1882 HRGN hrgn1 = hrgn; 1883 1883 #endif … … 1934 1934 BOOL success; 1935 1935 LONG lInside; 1936 #ifdef DEBUG 1936 #ifdef DEBUG_LOGGING 1937 1937 HRGN hrgn1 = hrgn; 1938 1938 #endif … … 1967 1967 BOOL success; 1968 1968 LONG lInside; 1969 #ifdef DEBUG 1969 #ifdef DEBUG_LOGGING 1970 1970 HRGN hrgn1 = hrgn; 1971 1971 #endif
Note:
See TracChangeset
for help on using the changeset viewer.