]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Integrate patch for TRIPOLI (patch for Windows)
authorvsr <vsr@opencascade.com>
Tue, 17 Nov 2009 15:56:53 +0000 (15:56 +0000)
committervsr <vsr@opencascade.com>
Tue, 17 Nov 2009 15:56:53 +0000 (15:56 +0000)
src/OCCViewer/OCCViewer_VService.cxx

index a2217a28b209e1fa6c611e61d45a7f8ab0aefbdb..02f104d7ed1551523e12b93bc67c9eb5ae8d9f18 100755 (executable)
@@ -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;
 }