X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fsgp.cpp;h=ffb26b8486fa1c590a47f8fd739df183339ae7e4;hp=e614a7f9290cd5916d16abd79757f9e56d39fa05;hb=ceb0f76ad587384928188f875c2862a3cb66b2dd;hpb=8774e7b513e87e09ba599dfb120c525e2bae2498 diff --git a/libctgraphics/sgp.cpp b/libctgraphics/sgp.cpp index e614a7f..ffb26b8 100644 --- a/libctgraphics/sgp.cpp +++ b/libctgraphics/sgp.cpp @@ -522,8 +522,10 @@ SGP::setTextSize (double height) double dHeightPixels = height * m_iPhysicalYSize; double dHeightPoints = dHeightPixels * m_dPointsPerPixel; m_pFont->SetPointSize (nearest(dHeightPoints)); +#if DEBUG sys_error (ERR_TRACE, "Setting text size to %d points", nearest(dHeightPoints)); +#endif m_driver.idWX()->SetFont (*m_pFont); } @@ -558,7 +560,9 @@ SGP::setTextPointSize (double height) if (m_driver.isWX()) { m_iTextPointSize = static_cast(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