Mercurial > hg > indyvon
changeset 180:dcb941086063
Adjusted viewport scaling.
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Thu, 22 Oct 2015 03:52:26 +0300 |
parents | e73174356504 |
children | fc9c674a4d54 |
files | src/indyvon/viewport.clj |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indyvon/viewport.clj Sun Sep 20 02:00:53 2015 +0300 +++ b/src/indyvon/viewport.clj Thu Oct 22 03:52:26 2015 +0300 @@ -39,7 +39,7 @@ (doto (AffineTransform/getTranslateInstance x y) (.concatenate transform)))) -(def ^:dynamic *viewport-scaling-step* (double 3/4)) +(def ^:dynamic *viewport-scaling-step* (Math/sqrt (/ 1.0 2.0))) (def ^:dynamic *viewport-min-scale* 1E-6) (def ^:dynamic *viewport-max-scale* 1E6)