[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/lava bgfilegen.py
From: |
Asko Soukka |
Subject: |
[Gzz-commits] libvob/lava bgfilegen.py |
Date: |
Tue, 06 May 2003 09:28:17 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Asko Soukka <address@hidden> 03/05/06 09:28:17
Modified files:
lava : bgfilegen.py
Log message:
fix
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/lava/bgfilegen.py.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
Patches:
Index: libvob/lava/bgfilegen.py
diff -u libvob/lava/bgfilegen.py:1.14 libvob/lava/bgfilegen.py:1.15
--- libvob/lava/bgfilegen.py:1.14 Tue May 6 08:55:48 2003
+++ libvob/lava/bgfilegen.py Tue May 6 09:28:17 2003
@@ -92,7 +92,6 @@
scalePostfix = ''
if scale != 1: scalePostfix = '-%sx' % (scale)
- w.setLocation(0,0,384*scale,384*scale)
size = vs.getSize()
# for Java to accept Python Long
@@ -110,17 +109,15 @@
if (jpeg):
print 'Saving background texture into %s%s-paper.gen.jpg.' %
(str(seed), scalePostfix)
- saveanim.saveframe('bgfile.tmp', w, 0, 0, 384*scale, 384*scale)
+ saveanim.saveframe('bgfile.tmp', w, 0, 0, 384, 384)
os.system("convert -quality 95 %s %s" \
% ('bgfile.tmp', basedir+str(seed)+'%s-paper.gen.jpg' %
(scalePostfix)))
os.system("rm bgfile.tmp")
- w.setLocation(0,0,384,384)
return os.path.abspath(basedir+str(seed)+'%s-paper.gen.jpg' %
(scalePostfix))
else:
print 'Saving background texture into %s%s-paper.gen.png.' %
(str(seed), scalePostfix)
saveanim.saveframe(basedir+str(seed)+'%s-paper.gen.png' %
(scalePostfix),
- w, 0, 0, 384*scale, 384*scale)
- w.setLocation(0,0,384,384)
+ w, 0, 0, 384, 384)
return os.path.abspath(basedir+str(seed)+'%s-paper.gen.png' %
(scalePostfix))
class Main(Runnable):
@@ -129,6 +126,7 @@
from vob.paper.papermill import ThePaperMill
w = gfxapi.createWindow()
+ w.setLocation(0,0,384,384)
vs = w.createVobScene()
print "Working directory:", basedir
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/04
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/06
- [Gzz-commits] libvob/lava bgfilegen.py,
Asko Soukka <=
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/06
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/07
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/07
- [Gzz-commits] libvob/lava bgfilegen.py, Asko Soukka, 2003/05/07