summaryrefslogtreecommitdiff
path: root/common/project.cpp
diff options
context:
space:
mode:
authorleo2000-08-26 14:46:17 +0000
committerleo2000-08-26 14:46:17 +0000
commit53930ef60abf446960319d6c54a6899965b9a09f (patch)
tree392f51e1f1d34df6d99783e5bfa960b31f061015 /common/project.cpp
parent31a1d493ed4ca5d263244a8a3231111a58bdc5c4 (diff)
Rewrote the way the pieces toolbar work under Linux, now it can be
resized and floated. Save toolbar preferences between sessions. Fixed the check marks in the toolbar menu. git-svn-id: http://svn.leocad.org/trunk@107 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/project.cpp')
-rw-r--r--common/project.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/project.cpp b/common/project.cpp
index 06efabe..1be4d1f 100644
--- a/common/project.cpp
+++ b/common/project.cpp
@@ -1904,6 +1904,7 @@ static void BuildBSP(LC_BSPNODE* node, Piece* pList)
void Project::RenderScene(bool bShaded, bool bDrawViewports)
{
+ glViewport(0, 0, m_nViewX, m_nViewY);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if (bDrawViewports)