1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0025438: Visualization, TKOpenGl - always setup viewport within OpenGl_Workspace::Redraw()

This commit is contained in:
kgv
2014-10-31 15:33:12 +03:00
committed by bugmaster
parent c827ea3a68
commit e3573bb9ec
5 changed files with 24 additions and 39 deletions

View File

@@ -111,8 +111,8 @@ void Visual3d_View::SetWindow (const Handle(Aspect_Window)& theWindow)
Standard_Integer Width, Height;
theWindow->Size (Width, Height);
MyCView.DefWindow.dx = float(Width);
MyCView.DefWindow.dy = float(Height);
MyCView.DefWindow.dx = Width;
MyCView.DefWindow.dy = Height;
Standard_Real R, G, B;
MyBackground = MyWindow->Background ();
@@ -274,10 +274,10 @@ void Visual3d_View::SetRatio()
MyWindow->Size (aWidth, aHeight);
if (aWidth > 0 && aHeight > 0)
{
Standard_Real aRatio = (Standard_Real)aWidth / (Standard_Real)aHeight;
Standard_Real aRatio = (Standard_Real)aWidth / (Standard_Real)aHeight;
MyCView.DefWindow.dx = Standard_ShortReal (aWidth);
MyCView.DefWindow.dy = Standard_ShortReal (aHeight);
MyCView.DefWindow.dx = aWidth;
MyCView.DefWindow.dy = aHeight;
myGraphicDriver->RatioWindow (MyCView);