1
0
Fork 0

Single-line fix of that stupid bottom-right pixel

This commit is contained in:
Casey 2024-01-18 16:36:29 +03:00
parent 5872a931e1
commit 49fa1d7547
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Converter:
):
out |= bit
# bottom right pixel fix?
if self._is_darker(dark_i, bri_i, self._img.getpixel((x + 1, y + 2))):
if not self._is_darker(dark_i, bri_i, self._img.getpixel((x + 1, y + 2))):
out ^= 31
dark_i, bri_i = bri_i, dark_i
return out, dark_i, bri_i