From: <ha...@us...> - 2006-10-26 13:25:05
|
Revision: 6034 http://svn.sourceforge.net/jmol/?rev=6034&view=rev Author: hansonr Date: 2006-10-26 06:24:55 -0700 (Thu, 26 Oct 2006) Log Message: ----------- correction for when windowcentered Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/TransformManager.java trunk/Jmol/src/org/jmol/viewer/Viewer.java Modified: trunk/Jmol/src/org/jmol/viewer/TransformManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/TransformManager.java 2006-10-26 13:17:54 UTC (rev 6033) +++ trunk/Jmol/src/org/jmol/viewer/TransformManager.java 2006-10-26 13:24:55 UTC (rev 6034) @@ -806,7 +806,7 @@ } perspectiveOffset.x = xFixedTranslation; perspectiveOffset.y = yFixedTranslation; - if (!viewer.isCameraAdjustable()) + if (windowCentered || !viewer.isCameraAdjustable()) perspectiveOffset.z = 0; /* * Note that the effect of this modification is restricted to the Modified: trunk/Jmol/src/org/jmol/viewer/Viewer.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Viewer.java 2006-10-26 13:17:54 UTC (rev 6033) +++ trunk/Jmol/src/org/jmol/viewer/Viewer.java 2006-10-26 13:24:55 UTC (rev 6034) @@ -485,8 +485,8 @@ return transformManager.getZoomPercentSetting(); } - public final static int MAXIMUM_ZOOM = 200; - public final static int MAXIMUM_ZOOM_PERCENTAGE = MAXIMUM_ZOOM * 1000; + public final static int MAXIMUM_ZOOM = 2000; + public final static int MAXIMUM_ZOOM_PERCENTAGE = MAXIMUM_ZOOM * 100; void zoomToPercent(float percent) { transformManager.zoomToPercent(percent); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |