From: vsr Date: Tue, 17 Nov 2009 15:56:53 +0000 (+0000) Subject: Integrate patch for TRIPOLI (patch for Windows) X-Git-Tag: V5_1_3rc3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6f6f5cc16a13617eb14dcfe5b8c400c58550d90c;p=modules%2Fgui.git Integrate patch for TRIPOLI (patch for Windows) --- diff --git a/src/OCCViewer/OCCViewer_VService.cxx b/src/OCCViewer/OCCViewer_VService.cxx index a2217a28b..02f104d7e 100755 --- a/src/OCCViewer/OCCViewer_VService.cxx +++ b/src/OCCViewer/OCCViewer_VService.cxx @@ -88,13 +88,12 @@ Handle(Aspect_Window) OCCViewer_VService::CreateWindow( const Handle(V3d_View)& const Standard_Integer lowin, const Xw_WindowQuality quality ) { - Handle(Aspect_Window) viewWindow; #ifdef WNT - viewWindow = new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin ); + Handle(WNT_Window) viewWindow = new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin ); // Prevent flickering - w->SetFlags( WDF_NOERASEBKGRND ); + viewWindow->SetFlags( WDF_NOERASEBKGRND ); #else - viewWindow = new Xw_Window( Handle(Graphic3d_GraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin, quality ); + Handle(Xw_Window) viewWindow = new Xw_Window( Handle(Graphic3d_GraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin, quality ); #endif return viewWindow; }