X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fviews.cpp;h=22c5e1234f1742a0c3eb9292f56e983aaae6b803;hb=1f9d75d3e2159e69c52b83e1efe2397220d12c3f;hp=2d7874d690f5364f46f81e0a1d832b708c87cc4c;hpb=a00e02e9fc9fbf1fe0309d0c8955feb10d389823;p=ctsim.git diff --git a/src/views.cpp b/src/views.cpp index 2d7874d..22c5e12 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.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 @@ -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);