From 6f6f5cc16a13617eb14dcfe5b8c400c58550d90c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 17 Nov 2009 15:56:53 +0000 Subject: [PATCH] Integrate patch for TRIPOLI (patch for Windows) --- src/OCCViewer/OCCViewer_VService.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.39.2