diff options
| author | Guido van Rossum <guido@python.org> | 1992-09-01 14:45:57 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1992-09-01 14:45:57 +0000 |
| commit | e0be2b36b61078258213d1ddc7318bb4887ede28 (patch) | |
| tree | 4ffc4064d1d26fb598759404d9172e5588b56783 /Demo/sgi/video/Vplay.py | |
| parent | 61700bb985ce2708f489dae6397cf4be3e934d1a (diff) | |
| download | cpython-git-e0be2b36b61078258213d1ddc7318bb4887ede28.tar.gz | |
Added a clear() method to VFile class, to be called when the window
receives a REDRAW event
Diffstat (limited to 'Demo/sgi/video/Vplay.py')
| -rwxr-xr-x | Demo/sgi/video/Vplay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/sgi/video/Vplay.py b/Demo/sgi/video/Vplay.py index b8d06a1ff3..5f02ef1349 100755 --- a/Demo/sgi/video/Vplay.py +++ b/Demo/sgi/video/Vplay.py @@ -73,7 +73,7 @@ def main(): # Interpret options try: for opt, arg in opts: - if opt == '-M': magnify = string.atoi(arg) + if opt == '-M': magnify = float(eval(arg)) if opt == '-d': debug = debug + 1 if opt == '-l': looping = 1 if opt == '-m': mindelta = string.atoi(arg) @@ -147,7 +147,7 @@ def process(filename): gl.foreground() - width, height = vin.width * magnify, vin.height * magnify + width, height = int(vin.width * magnify), int(vin.height * magnify) if xoff <> None and yoff <> None: scrheight = gl.getgdesc(GL.GD_YPMAX) gl.prefposition(xoff, xoff+width-1, \ |
