Moved comment back [ci skip]

This commit is contained in:
Andrew Murray 2022-10-24 17:07:57 +11:00
parent d092bb7e0f
commit cf46156345

View File

@ -308,7 +308,6 @@ class BmpRleDecoder(ImageFile.PyDecoder):
data += byte * num_pixels data += byte * num_pixels
x += num_pixels x += num_pixels
else: else:
# absolute mode
if byte[0] == 0: if byte[0] == 0:
# end of line # end of line
while len(data) % self.state.xsize != 0: while len(data) % self.state.xsize != 0:
@ -326,6 +325,7 @@ class BmpRleDecoder(ImageFile.PyDecoder):
data += b"\x00" * (right + up * self.state.xsize) data += b"\x00" * (right + up * self.state.xsize)
x = len(data) % self.state.xsize x = len(data) % self.state.xsize
else: else:
# absolute mode
if rle4: if rle4:
# 2 pixels per byte # 2 pixels per byte
byte_count = byte[0] // 2 byte_count = byte[0] // 2