- Timestamp:
- Feb 10, 2004, 4:35:39 PM (22 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/devcontext.cpp
r10373 r10442 1 /* $Id: devcontext.cpp,v 1. 1 2004-01-11 11:42:09sandervl Exp $ */1 /* $Id: devcontext.cpp,v 1.2 2004-02-10 15:35:38 sandervl Exp $ */ 2 2 3 3 /* … … 364 364 } 365 365 //overwrite the current clip region with the copy 366 dprintf2(("New win32 clip region %x", hClipRgn)); 366 367 pHps->hrgnWin32Clip = hClipRgn; 367 368 return id; … … 393 394 // Activate previous clip region 394 395 GdiCombineVisRgnClipRgn(pHps, pHps->hrgnWin32Clip, RGN_AND); 396 397 dprintf2(("New win32 clip region %x", pHps->hrgnWin32Clip)); 395 398 } 396 399 return ret; -
trunk/src/gdi32/gdi32.cpp
r10434 r10442 1 /* $Id: gdi32.cpp,v 1.9 2 2004-01-30 22:19:59 birdExp $ */1 /* $Id: gdi32.cpp,v 1.93 2004-02-10 15:35:38 sandervl Exp $ */ 2 2 3 3 /* … … 831 831 } 832 832 //****************************************************************************** 833 //Selects the current path as a clipping region for a device context, combining834 //any existing clipping region by using the specified mode835 //TODO: Can be emulated with SelectClipRegion??836 //******************************************************************************837 BOOL WIN32API SelectClipPath(HDC hdc, int iMode)838 {839 dprintf(("GDI32: SelectClipPath, not implemented!(TRUE)\n"));840 return(TRUE);841 }842 //******************************************************************************843 833 //TODO: Sets the color adjustment values for a device context. (used to adjust 844 834 // the input color of the src bitmap for calls of StretchBlt & StretchDIBits -
trunk/src/gdi32/region.cpp
r10434 r10442 1 /* $Id: region.cpp,v 1.3 7 2004-01-30 22:20:00 birdExp $ */1 /* $Id: region.cpp,v 1.38 2004-02-10 15:35:39 sandervl Exp $ */ 2 2 3 3 /* … … 721 721 dprintf(("ERROR: GdiCopyClipRgn: GpiCreateRegion failed!!")); 722 722 DebugInt3(); 723 return 0;723 return NULLHANDLE; 724 724 } 725 725 lComplexity = GpiCombineRegion(pHps->hps, hrgnNewClip, pHps->hrgnWin32Clip, NULLHANDLE, CRGN_COPY); 726 726 if (lComplexity != RGN_ERROR) 727 727 { 728 return TRUE; 729 } 728 return hrgnNewClip; 729 } 730 dprintf(("GpiCombineRegion %x %x %x failed!!", pHps->hps, hrgnNewClip, pHps->hrgnWin32Clip)); 730 731 DebugInt3(); 731 return FALSE;732 return NULLHANDLE; 732 733 } 733 734 //****************************************************************************** … … 808 809 if(!interpretRegionAs(pHps, 0, hrgn, AS_DEVICE) ) 809 810 { 811 dprintf(("interpretRegionAs failed!!")); 810 812 return ERROR_W; 811 813 } … … 857 859 } 858 860 } 861 dprintf(("GpiCombineRegion failed %x %x %x %d", hrgnCurrent, hrgnSrc1, hrgnSrc2, lMode)); 859 862 GpiDestroyRegion(pHps->hps, hrgnCurrent); //delete newly created region 860 863 … … 2049 2052 } 2050 2053 //****************************************************************************** 2054 //Selects the current path as a clipping region for a device context, combining 2055 //any existing clipping region by using the specified mode 2056 //TODO: Can be emulated with SelectClipRegion?? 2057 //****************************************************************************** 2058 BOOL WIN32API SelectClipPath(HDC hdc, int iMode) 2059 { 2060 HRGN hrgn; 2061 BOOL ret = FALSE; 2062 2063 hrgn = PathToRegion(hdc); 2064 if(hrgn) 2065 { 2066 ret = ExtSelectClipRgn(hdc, hrgn, iMode) != ERROR_W; 2067 DeleteObject(hrgn); 2068 } 2069 2070 if(hrgn == NULLHANDLE || ret == FALSE) { 2071 dprintf(("GDI32: SelectClipPath FAILED %x %d", hrgn, ret)); 2072 } 2073 return ret; 2074 } 2075 //****************************************************************************** 2051 2076 //Needs wrapper as this file includes os2.h!! 2052 2077 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.