0027536: Visualization - incorrect behavior of zoom persisted objects
[occt.git] / src / OpenGl / OpenGl_BVHTreeSelector.cxx
index 09298ea..0699286 100644 (file)
@@ -122,6 +122,17 @@ void OpenGl_BVHTreeSelector::SetViewVolume (const Handle(Graphic3d_Camera)& theC
   }
 }
 
+// =======================================================================
+// function : SetViewportSize
+// purpose  :
+// =======================================================================
+void OpenGl_BVHTreeSelector::SetViewportSize (const Standard_Integer theViewportWidth,
+                                              const Standard_Integer theViewportHeight)
+{
+  myViewportHeight = theViewportHeight;
+  myViewportWidth = theViewportWidth;
+}
+
 // =======================================================================
 // function : SignedPlanePointDistance
 // purpose  :