mirror of
https://github.com/python/cpython
synced 2024-09-24 21:20:44 +00:00
Print real width and warn for stride not a multiple of 4 bytes
This commit is contained in:
parent
864cde2831
commit
fa3de516f5
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue