From 63f7b992a00214caf4cb5db2af4c322025338ad9 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Sat, 30 Apr 2022 17:21:56 -0500 Subject: [PATCH] debug --- plugin/chess/draw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()