X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fsgp.cpp;h=275a955bfbf031b24891351eb25e6e9830d57695;hp=263101fa3766e010ccd3553a5c8ed50e3b49559b;hb=9f29c8b32c972db1178d6f8551d5cd57ceb67083;hpb=23f5654dacb1952c15bda92c2606fae3a55e48ad diff --git a/libctgraphics/sgp.cpp b/libctgraphics/sgp.cpp index 263101f..275a955 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.29 2001/01/28 19:10:18 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