projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
61e63c3
)
r3876: Auto commit for Debian build
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 29 Jan 2003 07:11:17 +0000
(07:11 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 29 Jan 2003 07:11:17 +0000
(07:11 +0000)
src/views.cpp
patch
|
blob
|
history
diff --git
a/src/views.cpp
b/src/views.cpp
index 66433ee5677b90e1321e5e76a8a731752951dca1..c2d5e06dd75c5b5eb52c49578504b161947a6e8b 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
5 2003/01/29 04:34:06
kevin Exp $
+** $Id: views.cpp,v 1.16
6 2003/01/29 07:11:17
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
@@
-1060,8
+1060,10
@@
ImageFileView::setInitialClientSize ()
void
ImageFileView::OnDraw (wxDC* dc)
{
void
ImageFileView::OnDraw (wxDC* dc)
{
- if (m_pBitmap && m_pBitmap->Ok())
+ if (m_pBitmap && m_pBitmap->Ok()) {
+ *theApp->getLog() << "Drawing bitmap";
dc->DrawBitmap(*m_pBitmap, 0, 0, false);
dc->DrawBitmap(*m_pBitmap, 0, 0, false);
+ }
int xCursor, yCursor;
if (m_pCanvas->GetCurrentCursor (xCursor, yCursor))
int xCursor, yCursor;
if (m_pCanvas->GetCurrentCursor (xCursor, yCursor))
@@
-1115,6
+1117,7
@@
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";
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);