changeset 91:f87363889015

Fixed calculation of the highlight bounds in viewport-miniature.
author Mikhail Kryshen <mikhail@kryshen.net>
date Mon, 06 Dec 2010 19:57:22 +0300
parents dd7b8dbb20bc
children bf4a46f80851
files src/net/kryshen/indyvon/layers.clj
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/net/kryshen/indyvon/layers.clj	Sun Nov 28 03:46:59 2010 +0300
     1.2 +++ b/src/net/kryshen/indyvon/layers.clj	Mon Dec 06 19:57:22 2010 +0300
     1.3 @@ -294,8 +294,8 @@
     1.4        (let [size (layer-size (:content viewport))
     1.5              s (scaling (:width size) (:height size) width height)
     1.6              [x y w h] (viewport-visible-bounds viewport)
     1.7 -            x (* x s)
     1.8 -            y (* y s)
     1.9 +            x (* (+ x (align-x (:width size) (/ width s) :center)) s)
    1.10 +            y (* (+ y (align-y (:height size) (/ height s) :center)) s)
    1.11              w (* w s)
    1.12              h (* h s)]
    1.13          (with-color :alt-back-color