diff --git a/plugin/chess/draw.py b/plugin/chess/draw.py index 78a92e4..9876036 100644 --- a/plugin/chess/draw.py +++ b/plugin/chess/draw.py @@ -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()