From: Dirk M. <di...@us...> - 2004-08-03 09:18:39
|
Update of /cvsroot/freevo/freevo/WIP/Barbieri In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13864 Modified Files: anim-test.py Log Message: use background image Index: anim-test.py =================================================================== RCS file: /cvsroot/freevo/freevo/WIP/Barbieri/anim-test.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** anim-test.py 2 Aug 2004 22:04:48 -0000 1.1 --- anim-test.py 3 Aug 2004 09:18:23 -0000 1.2 *************** *** 50,60 **** i = 0 c = time.clock() ! surface = pygame.Surface( SIZE, OBJFLAGS ).convert() ! timings[ "create-bg" ] = time.clock() - c ! ! surface.fill( 0xffffff ) ! while i < SIZE[ 0 ]: ! pygame.draw.line( surface, 0x000000, ( 0, 0 ), ( SIZE[ 0 ], i ), 1 ) ! i += stepx return surface --- 50,63 ---- i = 0 c = time.clock() ! if 1: ! surface = pygame.image.load('../../share/images/aubin_bg2.jpg') ! else: ! surface = pygame.Surface( SIZE, OBJFLAGS ).convert() ! timings[ "create-bg" ] = time.clock() - c ! ! surface.fill( 0xffffff ) ! while i < SIZE[ 0 ]: ! pygame.draw.line( surface, 0x000000, ( 0, 0 ), ( SIZE[ 0 ], i ), 1 ) ! i += stepx return surface |