gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/util papersampler.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/util papersampler.py
Date: Mon, 03 Mar 2003 09:50:33 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        03/03/03 09:50:08

Modified files:
        gfx/util       : papersampler.py 

Log message:
        Add zooming

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/util/papersampler.py.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: gzz/gfx/util/papersampler.py
diff -u gzz/gfx/util/papersampler.py:1.9 gzz/gfx/util/papersampler.py:1.10
--- gzz/gfx/util/papersampler.py:1.9    Mon Mar  3 09:28:54 2003
+++ gzz/gfx/util/papersampler.py        Mon Mar  3 09:50:07 2003
@@ -98,7 +98,12 @@
            seed += 1
 
 def textPaperScene(vs, layout, scale):
-    layout.place(vs, 0, 1, 1, -1)
+    scale *= .5
+    into = vs.affineCS(0, "zoom", 0,
+                       0.5 * (xs - layout.w * scale),
+                       0.5 * (ys - layout.h * scale),
+                       scale, 0, 0, scale)
+    layout.place(vs, into, 1, 1, -1)
     
 
 def createTextPapers():




reply via email to

[Prev in Thread] Current Thread [Next in Thread]