projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3881: *** empty log message ***
[ctsim.git]
/
src
/
views.cpp
diff --git
a/src/views.cpp
b/src/views.cpp
index 2d7874d690f5364f46f81e0a1d832b708c87cc4c..22c5e1234f1742a0c3eb9292f56e983aaae6b803 100644
(file)
--- a/
src/views.cpp
+++ b/
src/views.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.cpp,v 1.16
8 2003/01/29 07:30:49
kevin Exp $
+** $Id: views.cpp,v 1.16
9 2003/01/30 02:25:22
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
@@
-1088,7
+1088,9
@@
void
ImageFileView::OnDraw (wxDC* dc)
{
if (m_pBitmap && m_pBitmap->Ok()) {
ImageFileView::OnDraw (wxDC* dc)
{
if (m_pBitmap && m_pBitmap->Ok()) {
- *theApp->getLog() << "Drawing bitmap";
+#ifdef DEBUG
+ *theApp->getLog() << "Drawing bitmap\n";
+#endif
dc->DrawBitmap(*m_pBitmap, 0, 0, false);
}
dc->DrawBitmap(*m_pBitmap, 0, 0, false);
}
@@
-1144,7
+1146,9
@@
ImageFileView::OnUpdate (wxView *WXUNUSED(sender), wxObject *WXUNUSED(hint) )
delete m_pBitmap;
m_pBitmap = NULL;
}
delete m_pBitmap;
m_pBitmap = NULL;
}
- *theApp->getLog() << "Making new bitmap bitmap";
+#ifdef DEBUG
+ *theApp->getLog() << "Making new bitmap\n";
+#endif
m_pBitmap = new wxBitmap (image);
delete imageData;
m_pCanvas->SetScrollbars(20, 20, nx/20, ny/20);
m_pBitmap = new wxBitmap (image);
delete imageData;
m_pCanvas->SetScrollbars(20, 20, nx/20, ny/20);