summaryrefslogtreecommitdiff
path: root/win/Pieceprv.cpp
diff options
context:
space:
mode:
authorleo2004-10-01 05:59:41 +0000
committerleo2004-10-01 05:59:41 +0000
commit92205f43a642bb255e5141d9c471e49e01ac6cb3 (patch)
tree2e773bbcb3ac7b560d982f11079b9fc810c5057c /win/Pieceprv.cpp
parentc117a3dc16af7346d750475e648252f5dbffce9b (diff)
Better math for the Zoom Extents function.
git-svn-id: http://svn.leocad.org/trunk@359 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Pieceprv.cpp')
-rw-r--r--win/Pieceprv.cpp2
1 files changed, 1 insertions, 1 deletions
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);