Ignore:
Timestamp:
Apr 30, 2004, 3:27:19 PM (21 years ago)
Author:
sandervl
Message:

drawSingleLinePoint: wrong pen style checks; logging updates

File:
1 edited

Legend:

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

    r10563 r10594  
    1 /* $Id: line.cpp,v 1.16 2004-03-25 15:06:37 sandervl Exp $ */
     1/* $Id: line.cpp,v 1.17 2004-04-30 13:27:18 sandervl Exp $ */
    22/*
    33 * Line API's
     
    8585  if ((penInfo.lopnWidth.x > 1) || (penInfo.lopnWidth.y > 1))
    8686  {
    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    }
    8992
    9093    LONG color = GetBValue(penInfo.lopnColor) | (GetGValue(penInfo.lopnColor)<<8) | (GetRValue(penInfo.lopnColor)<<16);
    9194
    9295    return drawLinePointCircle(pHps,penInfo.lopnWidth.x,penInfo.lopnWidth.y,color);
    93   } else
     96  }
     97  else
    9498  {
    9599    LONG color = GetBValue(penInfo.lopnColor) | (GetGValue(penInfo.lopnColor)<<8) | (GetRValue(penInfo.lopnColor)<<16);
     
    159163    }
    160164#endif
    161 
    162165    //CB: add metafile info
    163166
Note: See TracChangeset for help on using the changeset viewer.