mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Moved comment back [ci skip]
This commit is contained in:
parent
d092bb7e0f
commit
cf46156345
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user