gzz-commits
[Top][All Lists]
Advanced

[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: Wed, 07 May 2003 05:56:29 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Asko Soukka <address@hidden>    03/05/07 05:56:29

Modified files:
        lava           : bgfilegen.py 

Log message:
        pbuffer

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/lava/bgfilegen.py.diff?tr1=1.18&tr2=1.19&r1=text&r2=text

Patches:
Index: libvob/lava/bgfilegen.py
diff -u libvob/lava/bgfilegen.py:1.18 libvob/lava/bgfilegen.py:1.19
--- libvob/lava/bgfilegen.py:1.18       Wed May  7 03:56:12 2003
+++ libvob/lava/bgfilegen.py    Wed May  7 05:56:29 2003
@@ -109,7 +109,7 @@
 
     if (jpeg):
         print 'Saving background texture into %s%s-paper.gen.jpg.' % 
(str(seed), scalePostfix)
-        saveanim.saveframe('bgfile.tmp', w, 0, 0, 384, 384)   
+        saveanim.saveframe('bgfile.tmp', w, 0, 0, 384*scale, 384*scale)   
         os.system("convert -quality 95 %s %s" \
                   % ('bgfile.tmp', basedir+str(seed)+'%s-paper.gen.jpg' % 
(scalePostfix)))
         os.system("rm bgfile.tmp")
@@ -117,7 +117,7 @@
     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, 384)   
+                           w, 0, 0, 384*scale, 384*scale)   
         return os.path.abspath(basedir+str(seed)+'%s-paper.gen.png' % 
(scalePostfix))
 
 class Main(Runnable):
@@ -125,8 +125,12 @@
         global ThePaperMill, w
         from vob.paper.papermill import ThePaperMill
 
-        w = gfxapi.createWindow()
-        w.setLocation(0,0,384,384)
+        # w = gfxapi.createWindow()
+
+        # pbuffer
+        w = gfxapi.createStableOffscreen(1536, 1536)
+
+        #w.setLocation(0,0,384,384)
         vs = w.createVobScene()
         print "Working directory:", basedir
 




reply via email to

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