From: VTN <> Date: Thu, 28 Apr 2011 15:59:14 +0000 (+0000) Subject: OCC22385 The AISInitViewer Draw command creates too small viewer on Windows. X-Git-Tag: V6_5_1~47 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=4b9ac1ce6c67289dc32d094c742d0f055185aebb OCC22385 The AISInitViewer Draw command creates too small viewer on Windows. --- diff --git a/src/ViewerTest/ViewerTest_Tool.cxx b/src/ViewerTest/ViewerTest_Tool.cxx index 42007880ce..413032dff4 100755 --- a/src/ViewerTest/ViewerTest_Tool.cxx +++ b/src/ViewerTest/ViewerTest_Tool.cxx @@ -84,6 +84,8 @@ static Handle(Graphic3d_GraphicDevice)& GetDevice() { #endif +Standard_IMPORT Standard_Boolean Draw_VirtualWindows; + //======================================================================= //function : MakeViewer //purpose : @@ -100,17 +102,18 @@ Handle(V3d_Viewer) ViewerTest_Tool::MakeViewer (const Standard_CString title) title, Handle(WNT_WClass)::DownCast (ViewerTest::WClass()), WS_OVERLAPPEDWINDOW, - 0.,0.,0.25,0.25, + 0,460,409,409, Quantity_NOC_BLACK); window->Map(); #else window = new Xw_Window(GetDevice(), title, - 0.,0.60,0.40,0.40, + 0,460,409,409, Xw_WQ_3DQUALITY, Quantity_NOC_BLACK); #endif + window->SetVirtual (Draw_VirtualWindows); // Viewer