small fixes

This commit is contained in:
Klemek
2021-08-27 10:20:46 +02:00
parent 80e157c86f
commit 05039ea001
4 changed files with 8 additions and 3 deletions
-1
View File
@@ -41,7 +41,6 @@ class Image:
def set_pixel(self, x: int, y: int, v: bool) -> None:
position = self.__get_position(x, y)
chunk_id = position // 8
# TODO fix, invalid chunk id when drawing
if v != self.get_pixel(x, y):
if v:
self.data[chunk_id] |= 1 << (7 - position % 8)