From 3f720c906477d6f466d04829ab0f76815fd7117c Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 7 Sep 2017 15:18:39 +0200 Subject: [PATCH] #3109 creaMaracasVisu Bug New Normal - branch vtk7itk4 compilation with vtk7 --- .../wxWindows/widgets/wxVTKRenderWindowInteractor.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx index a0210c1..29fd7c1 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVTKRenderWindowInteractor.cxx @@ -185,6 +185,8 @@ wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor() : wxWindow(), vtkRend this->RenderWindow = NULL; this->SetRenderWindow(vtkRenderWindow::New()); this->RenderWindow->Delete(); + this->SetBackgroundStyle( wxBG_STYLE_COLOUR ); + this->SetBackgroundColour( wxColor(0,0,0,0) ); } //--------------------------------------------------------------------------- wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor(wxWindow *parent, @@ -218,6 +220,8 @@ wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor(wxWindow *parent, // so we update the size information of the interactor/renderwindow here this->UpdateSize(size.x, size.y); #endif + this->SetBackgroundStyle( wxBG_STYLE_COLOUR ); + this->SetBackgroundColour( wxColor(0,0,0,0) ); } //--------------------------------------------------------------------------- wxVTKRenderWindowInteractor::~wxVTKRenderWindowInteractor() -- 2.45.1