1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

OCC22385 The AISInitViewer Draw command creates too small viewer on Windows.

This commit is contained in:
VTN 2011-04-28 15:59:14 +00:00 committed by bugmaster
parent 4952a30a49
commit 4b9ac1ce6c

View File

@ -84,6 +84,8 @@ static Handle(Graphic3d_GraphicDevice)& GetDevice() {
#endif #endif
Standard_IMPORT Standard_Boolean Draw_VirtualWindows;
//======================================================================= //=======================================================================
//function : MakeViewer //function : MakeViewer
//purpose : //purpose :
@ -100,17 +102,18 @@ Handle(V3d_Viewer) ViewerTest_Tool::MakeViewer (const Standard_CString title)
title, title,
Handle(WNT_WClass)::DownCast (ViewerTest::WClass()), Handle(WNT_WClass)::DownCast (ViewerTest::WClass()),
WS_OVERLAPPEDWINDOW, WS_OVERLAPPEDWINDOW,
0.,0.,0.25,0.25, 0,460,409,409,
Quantity_NOC_BLACK); Quantity_NOC_BLACK);
window->Map(); window->Map();
#else #else
window = new Xw_Window(GetDevice(), window = new Xw_Window(GetDevice(),
title, title,
0.,0.60,0.40,0.40, 0,460,409,409,
Xw_WQ_3DQUALITY, Xw_WQ_3DQUALITY,
Quantity_NOC_BLACK); Quantity_NOC_BLACK);
#endif #endif
window->SetVirtual (Draw_VirtualWindows);
// Viewer // Viewer