X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fviews.cpp;h=e3922dafce711ee8e7c1c44a01ed10e76aa8bb50;hb=06066d9192936b4c4cc69847cd4c1f5aa7017829;hp=2d7874d690f5364f46f81e0a1d832b708c87cc4c;hpb=a00e02e9fc9fbf1fe0309d0c8955feb10d389823;p=ctsim.git diff --git a/src/views.cpp b/src/views.cpp index 2d7874d..e3922da 100644 --- 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 ** -** $Id: views.cpp,v 1.168 2003/01/29 07:30:49 kevin Exp $ +** $Id: views.cpp,v 1.170 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 @@ -1088,7 +1088,9 @@ void 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); } @@ -1144,7 +1146,9 @@ ImageFileView::OnUpdate (wxView *WXUNUSED(sender), wxObject *WXUNUSED(hint) ) 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); @@ -2285,7 +2289,6 @@ PhantomFileView::OnRasterize (wxCommandEvent& event) *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();