From: Guido van Rossum Date: Thu, 7 May 1992 15:21:52 +0000 (+0000) Subject: Print real width and warn for stride not a multiple of 4 bytes X-Git-Tag: v0.9.8~326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa3de516f588166845521e2cda30a4bbb57672b4;p=thirdparty%2FPython%2Fcpython.git 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 f34f574c7174..7f98237a9743 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: