{
#if HAVE_WXWINDOWS
if (m_driver.isWX()) {
- int wxFxn = -1;
+ wxRasterOperationMode wxFxn;
switch (ro) {
case RO_AND:
wxFxn = wxAND;
case RO_XOR:
wxFxn = wxXOR;
break;
+ default:
+ return;
}
- if (wxFxn >= 0)
- m_driver.idWX()->SetLogicalFunction (wxFxn);
+ m_driver.idWX()->SetLogicalFunction (wxFxn);
}
#endif
}
double dHeightPixels = height * m_iPhysicalYSize;
double dHeightPoints = dHeightPixels * m_dPointsPerPixel;
m_pFont->SetPointSize (nearest<int>(dHeightPoints));
+#if DEBUG
sys_error (ERR_TRACE, "Setting text size to %d points",
nearest<int>(dHeightPoints));
+#endif
m_driver.idWX()->SetFont (*m_pFont);
}
if (m_driver.isWX()) {
m_iTextPointSize = static_cast<int>(height+0.5);
m_pFont->SetPointSize (m_iTextPointSize);
+#if DEBUG
sys_error (ERR_TRACE, "Setting point size to %d", m_iTextPointSize);
+#endif
m_driver.idWX()->SetFont (*m_pFont);
}
#endif