From 4cbf6de41a9c6935ee7f2739b4e43c555105e37b Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 30 Oct 2008 11:32:38 +0000 Subject: [PATCH] Removing flicker on resizing 3D view on Win32 --- src/OCCViewer/OCCViewer_VService.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OCCViewer/OCCViewer_VService.cxx b/src/OCCViewer/OCCViewer_VService.cxx index 77ef0aced..f4d4fc0ec 100755 --- a/src/OCCViewer/OCCViewer_VService.cxx +++ b/src/OCCViewer/OCCViewer_VService.cxx @@ -32,6 +32,7 @@ #include #include #include +#include #else #include #include @@ -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 ); -- 2.39.2