Print real width and warn for stride not a multiple of 4 bytes

This commit is contained in:
Guido van Rossum 1992-05-07 15:21:52 +00:00
parent 864cde2831
commit fa3de516f5

View file

@ -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: