commit | fa3de516f588166845521e2cda30a4bbb57672b4 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu May 07 15:21:52 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu May 07 15:21:52 1992 +0000 |
tree | 9b7c41a1209f777c23a42c27b76cfb4a19b385c5 | |
parent | 864cde28312dc448bdf2f6d69511434cdff069a4 [diff] [blame] |
Print real width and warn for stride not a multiple of 4 bytes
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 @@ 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: