This commit is contained in:
Rudis Muiznieks 2022-04-30 17:41:54 -05:00
parent 7d70aa7900
commit 762b1a2dbb
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 3 additions and 5 deletions

View File

@ -113,11 +113,9 @@ class Draw:
sqy = 7 - sqy
else:
sqx = 7 - sqx
for i in range(8):
self._invert_pixel(sqx * 8 + i, sqy * 8)
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7)
self._invert_pixel(sqx * 8, sqy * 8 + i)
self._invert_pixel(sqx * 8 + 7, sqy * 8 + i)
for i in range(7):
self._invert_pixel(sqx * 8 + i, sqy * 8) #0,0 - 7,0
self._invert_pixel(sqx * 8 + i, sqy * 8 + 7) # 0,7 - 7,7
def draw_board(self, board: chess.Board, player_color: chess.Color):
self._graphics.fill_rect(0, 0, self.BOARD_SIZE, self.BOARD_SIZE, 0)