** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.cpp,v 1.168 2003/01/29 07:30:49 kevin Exp $
+** $Id: views.cpp,v 1.169 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
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);
}
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);