- Timestamp:
- Apr 30, 2004, 3:27:19 PM (21 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r10442 r10594 1 /* $Id: gdi32.cpp,v 1.9 3 2004-02-10 15:35:38 sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.94 2004-04-30 13:27:18 sandervl Exp $ */ 2 2 3 3 /* … … 176 176 HPEN hPen; 177 177 178 if(lplb) { 179 dprintf(("lbStyle %x", lplb->lbStyle)); 180 dprintf(("lbColor %x", lplb->lbColor)); 181 dprintf(("lbHatch %x", lplb->lbHatch)); 182 } 178 183 hPen = O32_ExtCreatePen(dwPenStyle, dwWidth, lplb, dwStyleCount, lpStyle); 179 184 if(hPen) STATS_ExtCreatePen(hPen, dwPenStyle, dwWidth, lplb, dwStyleCount, lpStyle); … … 722 727 //****************************************************************************** 723 728 //****************************************************************************** 724 BOOL WIN32API PolyPolygon( HDC hdc, const POINT * arg2, const INT * arg3, UINT arg4) 725 { 726 return O32_PolyPolygon(hdc, arg2, arg3, arg4); 729 BOOL WIN32API PolyPolygon( HDC hdc, const POINT *lpPoints, const INT *lpPolyCounts, UINT nCount) 730 { 731 #ifdef DEBUG 732 int count = 0; 733 for(int i=0;i<nCount;i++) 734 { 735 for(int j=0;j<lpPolyCounts[i];j++) 736 { 737 dprintf(("Vertex %d point (%d,%d)", i, lpPoints[count].x, lpPoints[count].y)); 738 count++; 739 } 740 } 741 #endif 742 return O32_PolyPolygon(hdc, lpPoints, lpPolyCounts, nCount); 727 743 } 728 744 //****************************************************************************** -
trunk/src/gdi32/line.cpp
r10563 r10594 1 /* $Id: line.cpp,v 1.1 6 2004-03-25 15:06:37sandervl Exp $ */1 /* $Id: line.cpp,v 1.17 2004-04-30 13:27:18 sandervl Exp $ */ 2 2 /* 3 3 * Line API's … … 85 85 if ((penInfo.lopnWidth.x > 1) || (penInfo.lopnWidth.y > 1)) 86 86 { 87 if ((penInfo.lopnStyle != PS_INSIDEFRAME) && (penInfo.lopnStyle != PS_SOLID)) 88 return FALSE; 87 if (((penInfo.lopnStyle & PS_STYLE_MASK) != PS_INSIDEFRAME) && ((penInfo.lopnStyle & PS_STYLE_MASK) != PS_SOLID)) 88 { 89 dprintf(("drawSingleLinePoint -> not PS_INSIDEFRAME nor PS_SOLID")); 90 return TRUE; //TODO: ?? 91 } 89 92 90 93 LONG color = GetBValue(penInfo.lopnColor) | (GetGValue(penInfo.lopnColor)<<8) | (GetRValue(penInfo.lopnColor)<<16); 91 94 92 95 return drawLinePointCircle(pHps,penInfo.lopnWidth.x,penInfo.lopnWidth.y,color); 93 } else 96 } 97 else 94 98 { 95 99 LONG color = GetBValue(penInfo.lopnColor) | (GetGValue(penInfo.lopnColor)<<8) | (GetRValue(penInfo.lopnColor)<<16); … … 159 163 } 160 164 #endif 161 162 165 //CB: add metafile info 163 166 -
trunk/src/gdi32/oslibgpi.cpp
r10583 r10594 1 /* $Id: oslibgpi.cpp,v 1.1 8 2004-04-14 09:44:13sandervl Exp $ */1 /* $Id: oslibgpi.cpp,v 1.19 2004-04-30 13:27:18 sandervl Exp $ */ 2 2 3 3 /* … … 363 363 arcp.lS = 0; 364 364 if (!GpiSetArcParams(GetDCData(pHps)->hps,&arcp)) 365 return FALSE; 365 { 366 dprintf(("drawLinePointCircle: GpiSetArcParams failed with %x!!", WinGetLastError(0))); 367 return FALSE; 368 } 366 369 367 370 AREABUNDLE newAreaBundle, oldAreaBundle; … … 378 381 379 382 if (!GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA,ABB_COLOR | ABB_MIX_MODE | ABB_SET | ABB_SYMBOL,0,(PBUNDLE)&newAreaBundle)) 380 return FALSE; 383 { 384 dprintf(("drawLinePointCircle: GpiSetAttrs failed with %x!!", WinGetLastError(0))); 385 return FALSE; 386 } 381 387 382 388 if (GpiFullArc(GetDCData(pHps)->hps,DRO_FILL,MAKEFIXED((width-1)>>1,0)) == GPI_ERROR) 383 rc = FALSE; 389 { 390 dprintf(("drawLinePointCircle: GpiFullArc failed with %x!!", WinGetLastError(0))); 391 rc = FALSE; 392 } 384 393 GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA,ABB_COLOR | ABB_MIX_MODE | ABB_SET | ABB_SYMBOL,0,(PBUNDLE)&oldAreaBundle); 385 394 -
trunk/src/gdi32/region.cpp
r10465 r10594 1 /* $Id: region.cpp,v 1.4 0 2004-02-16 15:20:12sandervl Exp $ */1 /* $Id: region.cpp,v 1.41 2004-04-30 13:27:18 sandervl Exp $ */ 2 2 3 3 /* … … 683 683 } 684 684 //SvL: Must check if origin changed here. Sometimes happens when 685 // window lo oses focus. (don't know why....)685 // window loses focus. (don't know why....) 686 686 checkOrigin(pHps); 687 687 -
trunk/src/gdi32/text.cpp
r10400 r10594 1 /* $Id: text.cpp,v 1.4 3 2004-01-15 11:18:58sandervl Exp $ */1 /* $Id: text.cpp,v 1.44 2004-04-30 13:27:19 sandervl Exp $ */ 2 2 3 3 /* … … 351 351 else dprintf(("GDI32: ExtTextOutA %x %.*s (%d,%d) %x %d %x", hdc, cbCount, lpszString, X, Y, fuOptions, cbCount, lpDx)); 352 352 353 if(lpDx) { 354 for(int i=0;i<cbCount;i++) { 355 dprintf2(("Inc %d", lpDx[i])); 356 } 357 } 353 358 rc = InternalTextOutAW(hdc, X, Y, fuOptions, lprc, lpszString, NULL, cbCount, lpDx, TRUE, FALSE); 354 359
Note:
See TracChangeset
for help on using the changeset viewer.