summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorleo2005-11-08 18:23:10 +0000
committerleo2005-11-08 18:23:10 +0000
commit647e9c0cf53694b39abd24b74440c507cb8cda78 (patch)
treed907ea2d92d0ff496168b15d90d63217080e44e8 /common
parent19c11312a82c25102dbc45ffb2cc2b1fdd12f45a (diff)
Scale the camera rotation handles with the view size.
git-svn-id: http://svn.leocad.org/trunk@438 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common')
-rw-r--r--common/project.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/project.cpp b/common/project.cpp
index ae8ebb2..0a2418c 100644
--- a/common/project.cpp
+++ b/common/project.cpp
@@ -2864,7 +2864,7 @@ void Project::RenderOverlays(int Viewport)
glEnd();
- const float OverlayCameraSquareSize = 8.0f;
+ const float OverlayCameraSquareSize = max(8.0f, (w+h)/200);
// Draw squares.
glBegin(GL_LINE_LOOP);