X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.cpp;h=87e9e932135af1083e1f0cd4792ea9d63caf1011;hp=8ec1df2bff80bf1e17529210fd503e4bdf1e312b;hb=08a5cd04c3994d5ea24713b9b000791bd2e406fe;hpb=711cae0ee02e046370fdb4d6c6f440596ff71980 diff --git a/src/views.cpp b/src/views.cpp index 8ec1df2..87e9e93 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -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); }