Changeset 21304 for trunk/src/gdi32/oslibgpi.cpp
- Timestamp:
- Jun 18, 2009, 12:12:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/oslibgpi.cpp
r10594 r21304 374 374 GpiQueryAttrs(GetDCData(pHps)->hps,PRIM_LINE,LBB_MIX_MODE, (PBUNDLE)&lineBundle); 375 375 376 ULONG penAttrs = ABB_COLOR | ABB_MIX_MODE | ABB_SYMBOL; 377 376 378 newAreaBundle = oldAreaBundle; 377 379 newAreaBundle.lColor = color; 378 380 newAreaBundle.usMixMode = lineBundle.usMixMode; 381 if(!GetDCData(pHps)->isMetaPS && !GetDCData(pHps)->isPrinter) 382 { 379 383 newAreaBundle.usSet = LCID_DEFAULT; 384 penAttrs |= ABB_SET; 385 } 380 386 newAreaBundle.usSymbol = PATSYM_SOLID; 381 387 382 if (!GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA, ABB_COLOR | ABB_MIX_MODE | ABB_SET | ABB_SYMBOL,0,(PBUNDLE)&newAreaBundle))388 if (!GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA, penAttrs,0,(PBUNDLE)&newAreaBundle)) 383 389 { 384 390 dprintf(("drawLinePointCircle: GpiSetAttrs failed with %x!!", WinGetLastError(0))); … … 386 392 } 387 393 388 if (GpiFullArc(GetDCData(pHps)->hps, DRO_FILL,MAKEFIXED((width-1)>>1,0)) == GPI_ERROR)394 if (GpiFullArc(GetDCData(pHps)->hps, GetDCData(pHps)->inPath ? DRO_OUTLINE : DRO_FILL, MAKEFIXED((width-1)>>1,0)) == GPI_ERROR) 389 395 { 390 396 dprintf(("drawLinePointCircle: GpiFullArc failed with %x!!", WinGetLastError(0))); 391 397 rc = FALSE; 392 398 } 393 GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA, ABB_COLOR | ABB_MIX_MODE | ABB_SET | ABB_SYMBOL,0,(PBUNDLE)&oldAreaBundle);399 GpiSetAttrs(GetDCData(pHps)->hps,PRIM_AREA,penAttrs,0,(PBUNDLE)&oldAreaBundle); 394 400 395 401 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.