OCC22385 The AISInitViewer Draw command creates too small viewer on Windows.
authorVTN <>
Thu, 28 Apr 2011 15:59:14 +0000 (15:59 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:28:21 +0000 (19:28 +0400)
src/ViewerTest/ViewerTest_Tool.cxx

index 4200788..413032d 100755 (executable)
@@ -84,6 +84,8 @@ static Handle(Graphic3d_GraphicDevice)& GetDevice() {
 #endif
 
 
 #endif
 
 
+Standard_IMPORT Standard_Boolean Draw_VirtualWindows;
+
 //=======================================================================
 //function : MakeViewer
 //purpose  : 
 //=======================================================================
 //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,
                           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,
                           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
                         Xw_WQ_3DQUALITY,
                         Quantity_NOC_BLACK);
 #endif
+  window->SetVirtual (Draw_VirtualWindows);
 
   // Viewer
 
 
   // Viewer