From 92205f43a642bb255e5141d9c471e49e01ac6cb3 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 1 Oct 2004 05:59:41 +0000 Subject: Better math for the Zoom Extents function. git-svn-id: http://svn.leocad.org/trunk@359 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Pieceprv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/Pieceprv.cpp') diff --git a/win/Pieceprv.cpp b/win/Pieceprv.cpp index 90fd6e8..5cd68ca 100644 --- a/win/Pieceprv.cpp +++ b/win/Pieceprv.cpp @@ -84,7 +84,7 @@ void CPiecePreview::OnPaint() glLoadIdentity(); if (m_bZoomPreview) - m_pPieceInfo->ZoomExtents(); + m_pPieceInfo->ZoomExtents(30.0f, (float)aspect); else gluLookAt (-5, -5, 4, 0, 0, 0, 0, 0, 1); -- cgit v1.2.3