[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.178, 1.179
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-01-30 19:40:46
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31723/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Fixed coordinatesytstem size exlosion when decreasing window height Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.178 retrieving revision 1.179 diff -C2 -d -r1.178 -r1.179 *** View.java 30 Jan 2007 10:44:05 -0000 1.178 --- View.java 30 Jan 2007 19:40:13 -0000 1.179 *************** *** 1286,1290 **** Camera camera = Project.getInstance().getCurrentCamera(); Vertex v = new Vertex(camera.getCamera()); ! double scale = (camera.getFocalwidth() / 65) * (500 / height); double dist = v.minus(new Vertex(camera.getCenter())).length() * scale; if (active != null) { --- 1286,1290 ---- Camera camera = Project.getInstance().getCurrentCamera(); Vertex v = new Vertex(camera.getCamera()); ! double scale = (camera.getFocalwidth() / 65); double dist = v.minus(new Vertex(camera.getCenter())).length() * scale; if (active != null) { |