]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Removing flicker on resizing 3D view on Win32 V4_1_4rc1
authorabd <abd@opencascade.com>
Thu, 30 Oct 2008 11:32:38 +0000 (11:32 +0000)
committerabd <abd@opencascade.com>
Thu, 30 Oct 2008 11:32:38 +0000 (11:32 +0000)
src/OCCViewer/OCCViewer_VService.cxx

index 77ef0acede346334acca6a3c7926466e588147bc..f4d4fc0ec474bb500f0ed3b470b403917738a3f3 100755 (executable)
@@ -32,6 +32,7 @@
 #include <WNT_GraphicDevice.hxx>
 #include <WNT_GraphicDevice.hxx>
 #include <WNT_WDriver.hxx>
+#include <InterfaceGraphic_WNT.hxx>
 #else
 #include <Xw_Window.hxx>
 #include <Graphic3d_GraphicDevice.hxx>
@@ -89,6 +90,8 @@ void OCCViewer_VService::SetWindow( const Handle(V3d_View)& view,
 #ifdef WNT
   Handle(WNT_Window) w =
       new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin );
+  // Prevent flicker
+  w->SetFlags( WDF_NOERASEBKGRND );
 #else
   Handle(Xw_Window) w =
       new Xw_Window( Handle(Graphic3d_GraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin, quality );