projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4100: Automatic commit for debian_version_4_1_2-2
[ctsim.git]
/
src
/
views.cpp
diff --git
a/src/views.cpp
b/src/views.cpp
index 2d7874d690f5364f46f81e0a1d832b708c87cc4c..e3922dafce711ee8e7c1c44a01ed10e76aa8bb50 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.1
68 2003/01/29 07:30:49
kevin Exp $
+** $Id: views.cpp,v 1.1
70 2003/01/30 21:53:16
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);
@@
-2285,7
+2289,6
@@
PhantomFileView::OnRasterize (wxCommandEvent& event)
*theApp->getLog() << os.str().c_str() << "\n";
pImageFile->labelAdd (os.str().c_str(), timer.timerEnd());
*theApp->getLog() << os.str().c_str() << "\n";
pImageFile->labelAdd (os.str().c_str(), timer.timerEnd());
- OnUpdate(this, NULL);
pRasterDoc->UpdateAllViews(this);
pRasterDoc->getView()->setInitialClientSize();
pRasterDoc->Activate();
pRasterDoc->UpdateAllViews(this);
pRasterDoc->getView()->setInitialClientSize();
pRasterDoc->Activate();