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
|
||||
x += num_pixels
|
||||
else:
|
||||
# absolute mode
|
||||
if byte[0] == 0:
|
||||
# end of line
|
||||
while len(data) % self.state.xsize != 0:
|
||||
|
@ -326,6 +325,7 @@ class BmpRleDecoder(ImageFile.PyDecoder):
|
|||
data += b"\x00" * (right + up * self.state.xsize)
|
||||
x = len(data) % self.state.xsize
|
||||
else:
|
||||
# absolute mode
|
||||
if rle4:
|
||||
# 2 pixels per byte
|
||||
byte_count = byte[0] // 2
|
||||
|
|
Loading…
Reference in New Issue
Block a user