r164: *** empty log message ***
[ctsim.git] / src / views.cpp
index 8ec1df2bff80bf1e17529210fd503e4bdf1e312b..87e9e932135af1083e1f0cd4792ea9d63caf1011 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: views.cpp,v 1.9 2000/07/28 08:28:08 kevin Exp $
+**  $Id: views.cpp,v 1.10 2000/07/29 19:50:08 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
@@ -297,7 +297,7 @@ ImageFileView::OnUpdate(wxView *WXUNUSED(sender), wxObject *WXUNUSED(hint) )
                imageData[baseAddr] = imageData[baseAddr+1] = imageData[baseAddr+2] = intensity;
            }
        }
-       wxImage image (ny, nx, imageData, true);
+       wxImage image (nx, ny, imageData, true);
        m_bitmap = image.ConvertToBitmap();
        delete imageData;
        int xSize = nx;
@@ -562,6 +562,7 @@ PhantomView::OnDraw (wxDC* dc)
   SGPDriver driver (dc, "", xsize, ysize);
   SGP sgp (driver);
   const Phantom& rPhantom = GetDocument()->getPhantom();
+  sgp.setColor (C_RED);
   rPhantom.draw (sgp);
 }