Ignore:
Timestamp:
Jun 18, 2009, 12:12:33 PM (16 years ago)
Author:
ydario
Message:

Gdi32 updates.

File:
1 edited

Legend:

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

    r10594 r21304  
    374374  GpiQueryAttrs(GetDCData(pHps)->hps,PRIM_LINE,LBB_MIX_MODE, (PBUNDLE)&lineBundle);
    375375
     376  ULONG penAttrs = ABB_COLOR | ABB_MIX_MODE | ABB_SYMBOL;
     377
    376378  newAreaBundle           = oldAreaBundle;
    377379  newAreaBundle.lColor    = color;
    378380  newAreaBundle.usMixMode = lineBundle.usMixMode;
     381  if(!GetDCData(pHps)->isMetaPS && !GetDCData(pHps)->isPrinter)
     382  {
    379383  newAreaBundle.usSet     = LCID_DEFAULT;
     384      penAttrs |= ABB_SET;
     385  }
    380386  newAreaBundle.usSymbol  = PATSYM_SOLID;
    381387
    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))
    383389  {
    384390      dprintf(("drawLinePointCircle: GpiSetAttrs failed with %x!!", WinGetLastError(0)));
     
    386392  }
    387393
    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)
    389395  {
    390396      dprintf(("drawLinePointCircle: GpiFullArc failed with %x!!", WinGetLastError(0)));
    391397      rc = FALSE;
    392398  }
    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);
    394400
    395401  return rc;
Note: See TracChangeset for help on using the changeset viewer.