Use less ambiguous variable names

This commit is contained in:
Andrew Murray 2023-11-14 22:19:31 +11:00
parent 41d7a3757d
commit 6291207892

View File

@ -396,13 +396,13 @@ class Ico1Encoder(ImageFile.PyEncoder):
w, h = self.im.size
for y in range(h):
for x in range(w):
l, a = self.im.getpixel((x, y))
l_channel, a_channel = self.im.getpixel((x, y))
if x % 8 == 0:
first_bitmap += b"\x00"
second_bitmap += b"\xff"
if not a:
if not a_channel:
first_bitmap[-1] ^= 1 << (7 - x % 8)
if not l:
if not l_channel:
second_bitmap[-1] ^= 1 << (7 - x % 8)
data = first_bitmap + second_bitmap
return len(data), 0, data