inversion of colors black and white

This commit is contained in:
samuelsmith 2025-05-07 14:32:12 +02:00
parent 24a9be40f9
commit 34dc8853c2
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -145,7 +145,7 @@ public class JPanelChessBoard extends JPanel {
private void drawPiece(Graphics g, Piece piece) { private void drawPiece(Graphics g, Piece piece) {
g.drawImage( g.drawImage(
getChessPieceImageFromType(piece.getType(), piece.isWhite()), getChessPieceImageFromType(piece.getType(), !piece.isWhite()),
MARGIN+(xCoordFromGame(piece.getX())), MARGIN+(xCoordFromGame(piece.getX())),
MARGIN+(yCoordFromGame(piece.getY())), MARGIN+(yCoordFromGame(piece.getY())),
null null