X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdlgreconstruct.cpp;h=9dc63929363d804bf1ea90b2e4c6f2d566c80814;hb=19739a23ff15a104ba3508b9c8299ea79e52582c;hp=9f1b9506b6f9190446ece86e0c4588b77e071540;hpb=3f6c94c6bd432ad7b7a55ad991d3b8223fb44f18;p=ctsim.git diff --git a/src/dlgreconstruct.cpp b/src/dlgreconstruct.cpp index 9f1b950..9dc6392 100644 --- a/src/dlgreconstruct.cpp +++ b/src/dlgreconstruct.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: dlgreconstruct.cpp,v 1.17 2001/02/20 04:48:45 kevin Exp $ +** $Id$ ** ** 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 @@ -25,17 +25,8 @@ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ -#ifdef __GNUG__ -#pragma implementation "dlgreconstruct.h" -#endif - -// For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#ifdef __BORLANDC__ -#pragma hdrstop -#endif - #include "wx/utils.h" #include "wx/frame.h" #include "wx/button.h" @@ -127,7 +118,7 @@ ReconstructDialog::ReconstructDialog (Reconstructor& rReconstruct, const Project m_nyImage = MAX_IMAGE_Y; sizeDlg.x += m_nxImage; - sizeDlg.y = max (sizeDlg.y, m_nyImage); + sizeDlg.y = imax (sizeDlg.y, m_nyImage); m_iClientX = sizeDlg.x; m_iClientY = sizeDlg.y; @@ -213,7 +204,7 @@ ReconstructDialog::showView (int iViewNumber, bool bBackprojectView) } } wxImage image (m_nxImage, m_nyImage, imageData, true); - wxBitmap bitmap = image.ConvertToBitmap(); + wxBitmap bitmap (image); m_pSGP->getDriver().idWX()->DrawBitmap(bitmap, xBase, yBase, false); delete imageData; }