This commit is contained in:
Rudis Muiznieks 2022-04-30 17:21:56 -05:00
parent 93e941a79e
commit 63f7b992a0
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ class Draw:
def _invert_pixel(self, x: int, y: int):
c = self._graphics.pixel(x, y)
c = None if c != None else 1
c = 0 if c != 0 else 1
self._graphics.pixel(x, y, c)
def _cursor_clear(self, except_for: list[str], player_color: chess.Color):
@ -174,8 +174,8 @@ class Draw:
#self._cursor_clear([src, dst], player_color)
self._cursor(src, player_color)
self._cursor(dst, player_color)
else:
self._cursor_clear(list(), player_color)
#else:
#self._cursor_clear(list(), player_color)
self._graphics.show()