debug
This commit is contained in:
parent
93e941a79e
commit
63f7b992a0
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Reference in a new issue