Aligned comments correctly

This commit is contained in:
Andrew Murray 2019-12-21 08:15:48 +11:00
parent 209faf1b62
commit ce62dca326

View File

@ -322,11 +322,11 @@ def _save(im, fp, filename, bitmap_header=True):
if bitmap_header: if bitmap_header:
offset = 14 + header + colors * 4 offset = 14 + header + colors * 4
fp.write( fp.write(
b"BM" b"BM" # file type (magic)
+ o32(offset + image) # file type (magic) + o32(offset + image) # file size
+ o32(0) # file size + o32(0) # reserved
+ o32(offset) # reserved + o32(offset) # image data offset
) # image data offset )
# bitmap info header # bitmap info header
fp.write( fp.write(