projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r184: *** empty log message ***
[ctsim.git]
/
libctgraphics
/
sgp.cpp
diff --git
a/libctgraphics/sgp.cpp
b/libctgraphics/sgp.cpp
index 9d3f1fc0990e1c0cfab04cffdbcbc7d1caae7611..6b826d7172d4b22cfb1f5dd443d56f438cecb3f0 100644
(file)
--- a/
libctgraphics/sgp.cpp
+++ b/
libctgraphics/sgp.cpp
@@
-7,7
+7,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sgp.cpp,v 1.
9 2000/08/02 18:06:00
kevin Exp $
+** $Id: sgp.cpp,v 1.
10 2000/08/25 15:59:13
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
**
** 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
@@
-81,6
+81,9
@@
SGPDriver::~SGPDriver ()
SGP::SGP (const SGPDriver& driver)
: m_driver (driver)
SGP::SGP (const SGPDriver& driver)
: m_driver (driver)
+#if HAVE_WXWINDOWS
+ , m_pPen(NULL)
+#endif
{
m_iPhysicalXSize = m_driver.getPhysicalXSize();
m_iPhysicalYSize = m_driver.getPhysicalYSize();
{
m_iPhysicalXSize = m_driver.getPhysicalXSize();
m_iPhysicalYSize = m_driver.getPhysicalYSize();
@@
-225,8
+228,9
@@
SGP::setColor (int icol)
#if HAVE_WXWINDOWS
if (m_driver.isWX()) {
wxColor colour (s_aRGBColor[icol].getRed(), s_aRGBColor[icol].getGreen(), s_aRGBColor[icol].getBlue());
#if HAVE_WXWINDOWS
if (m_driver.isWX()) {
wxColor colour (s_aRGBColor[icol].getRed(), s_aRGBColor[icol].getGreen(), s_aRGBColor[icol].getBlue());
- wxPen pen (colour, 1, wxSOLID);
- m_driver.idWX()->SetPen (pen);
+ delete m_pPen;
+ m_pPen = new wxPen (colour, 1, wxSOLID);
+ m_driver.idWX()->SetPen (*m_pPen);
}
#endif
}
}
#endif
}