[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo papertest.py
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/demo papertest.py |
Date: |
Wed, 04 Dec 2002 06:12:16 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/12/04 06:12:16
Modified files:
gfx/demo : papertest.py
Log message:
fix integer zoom bug
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/papertest.py.diff?tr1=1.56&tr2=1.57&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/papertest.py
diff -u gzz/gfx/demo/papertest.py:1.56 gzz/gfx/demo/papertest.py:1.57
--- gzz/gfx/demo/papertest.py:1.56 Sun Dec 1 17:39:34 2002
+++ gzz/gfx/demo/papertest.py Wed Dec 4 06:12:16 2002
@@ -94,7 +94,7 @@
print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Time of", iters, "renders:",
t, "s"
-zoom = 900
+zoom = 900.0
passmask = [1,1,1,1]
@@ -178,7 +178,7 @@
h = size.height
cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, w, 0, 0, h)
- scale = zoom
+ scale = float(zoom)
cs2 = vs.coords.affineCoordsys(0, 0, 0, 0, scale / w, 0, 0, scale / h)
cs1left = vs.coords.ortho(cs1, 0, 0, 0, .5, 1)
@@ -187,6 +187,8 @@
cs2left = vs.coords.ortho(0, 0, 0, 0, scale / w * 2, scale / h)
cs2right = vs.coords.ortho(0, 0, -1, 0, scale / w * 2, scale / h)
+ print scale, w, h
+
vs.matcher.add(cs1, "1")
vs.matcher.add(cs2, "2")
@@ -311,7 +313,7 @@
cs1w = .47*size.width/self.w
cs1h = .47*size.height/self.h
- scale = zoom
+ scale = float(zoom)
cs2 = vs.coords.affineCoordsys(0, 1, 0, 0, scale/cs1w, 0, 0, scale/cs1h)
vs.matcher.add(cs2, "tex")
- [Gzz-commits] gzz/gfx/demo papertest.py,
Janne V. Kujala <=