X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctgraphics%2Fsgp.cpp;h=1bd9a1cdfeef534459f878e7b3ed09e76ec88647;hb=d8d2f574460dcef3ed43a0cad135bbeaacc132cd;hp=263101fa3766e010ccd3553a5c8ed50e3b49559b;hpb=23f5654dacb1952c15bda92c2606fae3a55e48ad;p=ctsim.git diff --git a/libctgraphics/sgp.cpp b/libctgraphics/sgp.cpp index 263101f..1bd9a1c 100644 --- a/libctgraphics/sgp.cpp +++ b/libctgraphics/sgp.cpp @@ -5,9 +5,9 @@ ** Programmer: Kevin Rosenberg ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg +** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: sgp.cpp,v 1.26 2001/01/04 21:28:41 kevin Exp $ +** $Id: sgp.cpp,v 1.28 2001/01/27 21:02:20 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -139,7 +139,7 @@ SGP::~SGP() { #if HAVE_WXWINDOWS if (m_driver.isWX()) { - m_driver.idWX()->SetFont (wxNullFont); + // m_driver.idWX()->SetFont (wxNullFont); delete m_pFont; } #endif @@ -564,7 +564,7 @@ SGP::getCharHeight () if (m_driver.isWX()) { dHeight = m_driver.idWX()->GetCharHeight(); dHeight /= static_cast(m_iPhysicalYSize); - dHeight /= (yv_max - yv_min); // scale to viewport; + dHeight /= (yv_max - yv_min); // scale to viewport; } #endif dHeight *= (yw_max - yw_min); // scale to world coordinates @@ -580,7 +580,7 @@ SGP::getCharWidth () if (m_driver.isWX()) { dWidth = m_driver.idWX()->GetCharWidth(); dWidth /= static_cast(m_iPhysicalXSize); - dWidth /= (xv_max - xv_min); // scale to viewport + dWidth /= (xv_max - xv_min); // scale to viewport } #endif dWidth *= (xw_max - xw_min); //scale to world coordinates