diff options
author | Guido van Rossum <guido@python.org> | 1992-05-07 15:21:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-05-07 15:21:52 (GMT) |
commit | fa3de516f588166845521e2cda30a4bbb57672b4 (patch) | |
tree | 9b7c41a1209f777c23a42c27b76cfb4a19b385c5 /Demo/sgi/video/vinfo.py | |
parent | 864cde28312dc448bdf2f6d69511434cdff069a4 (diff) | |
download | cpython-fa3de516f588166845521e2cda30a4bbb57672b4.zip cpython-fa3de516f588166845521e2cda30a4bbb57672b4.tar.gz cpython-fa3de516f588166845521e2cda30a4bbb57672b4.tar.bz2 |
Print real width and warn for stride not a multiple of 4 bytes
Diffstat (limited to 'Demo/sgi/video/vinfo.py')
-rwxr-xr-x | Demo/sgi/video/vinfo.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Demo/sgi/video/vinfo.py b/Demo/sgi/video/vinfo.py index f34f574..7f98237 100755 --- a/Demo/sgi/video/vinfo.py +++ b/Demo/sgi/video/vinfo.py @@ -61,7 +61,11 @@ def main(): else: size = (w/pf) * (h/pf) print name, ':', w, 'x', h, '; pf =', pf, ', size =', size, - if pf == 0: print '(color)', + if pf == 0: + print '(color)', + else: + print '(' + `(w/pf)` + 'x' + `(h/pf)` + ')', + if (w/pf)%4 <> 0: print '!!!', print num = 0 try: |