From: Kevin Rosenberg Date: Sun, 2 Aug 2009 21:46:02 +0000 (-0600) Subject: Use full repaint when resizing phantom, plot, 3dviews X-Git-Tag: v5.0.3~1 X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=commitdiff_plain;h=a15586dedc133281ecca0cc682fe4dd5eb1fceb1 Use full repaint when resizing phantom, plot, 3dviews --- diff --git a/src/graph3dview.cpp b/src/graph3dview.cpp index 747e983..d694b32 100644 --- a/src/graph3dview.cpp +++ b/src/graph3dview.cpp @@ -7,9 +7,7 @@ ** Date Started: Jan 2001 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id$ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** 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 @@ -187,7 +185,9 @@ Graph3dFileView::OnCreate (wxDocument *doc, long WXUNUSED(flags) ) Graph3dFileCanvas* Graph3dFileView::CreateCanvas (wxFrame* parent) { - Graph3dFileCanvas* pCanvas = new Graph3dFileCanvas (this, parent, wxPoint(-1,-1), wxSize(-1,-1), 0); + Graph3dFileCanvas* pCanvas = + new Graph3dFileCanvas (this, parent, wxPoint(-1,-1), wxSize(-1,-1), + wxFULL_REPAINT_ON_RESIZE); pCanvas->SetBackgroundColour(*wxWHITE); pCanvas->ClearBackground(); diff --git a/src/views.cpp b/src/views.cpp index 72ba35a..b238a81 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -7,9 +7,7 @@ ** Date Started: July 2000 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id$ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** 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 @@ -2309,8 +2307,9 @@ PhantomFileView::OnRasterize (wxCommandEvent& event) PhantomCanvas* PhantomFileView::CreateCanvas (wxFrame *parent) { - PhantomCanvas* pCanvas = new PhantomCanvas (this, parent, wxPoint(-1,-1), - wxSize(-1,-1), 0); + PhantomCanvas* pCanvas = + new PhantomCanvas (this, parent, wxPoint(-1,-1), + wxSize(-1,-1), wxFULL_REPAINT_ON_RESIZE); pCanvas->SetBackgroundColour(*wxWHITE); pCanvas->ClearBackground(); @@ -3391,7 +3390,8 @@ PlotFileView::CreateCanvas (wxFrame* parent) { PlotFileCanvas* pCanvas; - pCanvas = new PlotFileCanvas (this, parent, wxPoint(-1,-1), wxSize(-1,-1), 0); + pCanvas = new PlotFileCanvas (this, parent, wxPoint(-1,-1), wxSize(-1,-1), + wxFULL_REPAINT_ON_RESIZE); pCanvas->SetBackgroundColour(*wxWHITE); pCanvas->ClearBackground();