void wxPostScriptDC::Clear()
{
- wxFAIL_MSG( wxT("wxPostScriptDC::Clear not implemented.") );
+ // This should fail silently to avoid unnecessary
+ // asserts
+ // wxFAIL_MSG( wxT("wxPostScriptDC::Clear not implemented.") );
}
bool wxPostScriptDC::DoFloodFill (wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), const wxColour &WXUNUSED(col), int WXUNUSED(style))
{
// Now, a negative radius is interpreted to mean
// 'the proportion of the smallest X or Y dimension'
- double smallest = 0.0;
- if (width < height)
- smallest = width;
- else
- smallest = height;
+ double smallest = width < height ? width : height;
radius = (-radius * smallest);
}
case wxSCRIPT:
{
name = "/ZapfChancery-MediumItalic";
- Style = wxNORMAL;
- Weight = wxNORMAL;
break;
}
case wxSWISS:
static const char *wxCoord_dashed = "[4 8] 2";
static const char *dotted_dashed = "[6 6 2 6] 4";
- const char *psdash = (char *) NULL;
+ const char *psdash;
+
switch (m_pen.GetStyle())
{
case wxDOT: psdash = dotted; break;
CalcBoundingBox( (wxCoord)x1, (wxCoord)y1 );
CalcBoundingBox( (wxCoord)x3, (wxCoord)y3 );
- while ((node = node->GetNext()))
+ node = node->GetNext();
+ while (node)
{
q = (wxPoint *)node->GetData();
CalcBoundingBox( (wxCoord)x1, (wxCoord)y1 );
CalcBoundingBox( (wxCoord)x3, (wxCoord)y3 );
+
+ node = node->GetNext();
}
/*
lastStyle = Style;
lastWeight = Weight;
- const wxChar *name = NULL;
+ const wxChar *name;
switch (Family)
{
case wxSCRIPT:
{
name = wxT("Zapf.afm");
- Style = wxNORMAL;
- Weight = wxNORMAL;
+ break;
}
case wxSWISS:
default: