summaryrefslogtreecommitdiff
path: root/common/preview.cpp
diff options
context:
space:
mode:
authorleo2005-06-05 01:51:55 +0000
committerleo2005-06-05 01:51:55 +0000
commitf9f670643398aac6ad917505ccd76d2cf50230c7 (patch)
tree11e5c96a29e36d26a766d2d9c25d0dd83af7ebf3 /common/preview.cpp
parent583033b8bc46f46a039144c0d8fa97d406bc64ee (diff)
Updated LeoCAD to use GTK+ 2.0
git-svn-id: http://svn.leocad.org/trunk@403 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/preview.cpp')
-rw-r--r--common/preview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/preview.cpp b/common/preview.cpp
index bc63a0b..8317104 100644
--- a/common/preview.cpp
+++ b/common/preview.cpp
@@ -44,7 +44,7 @@ void PiecePreview::OnDraw ()
gluPerspective (30.0f, aspect, 1.0f, 100.0f);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
- m_pPieceInfo->ZoomExtents ();
+ m_pPieceInfo->ZoomExtents (30.0f, aspect);
float pos[4] = { 0, 0, 10, 0 }, *bg = project->GetBackgroundColor ();
glLightfv (GL_LIGHT0, GL_POSITION, pos);