Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chess.py
diff options
context:
space:
mode:
Diffstat (limited to 'chess.py')
-rw-r--r--chess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chess.py b/chess.py
index b3e4b93..ab20455 100644
--- a/chess.py
+++ b/chess.py
@@ -1549,7 +1549,7 @@ Black's turn." % (move))
y += self.scale
k += 1
- def reskin_from_svg(self, piece, colors):
+ def reskin_from_svg(self, piece, colors, bw='#ffffff'):
DICT = {'white_pawn': svg_pawn, 'black_pawn': svg_pawn,
'white_rook': svg_rook, 'black_rook': svg_rook,
'white_knight': svg_knight, 'black_knight': svg_knight,
@@ -1557,7 +1557,7 @@ Black's turn." % (move))
'white_queen': svg_queen, 'black_queen': svg_queen,
'white_king': svg_king, 'black_king': svg_king}
pixbuf = svg_str_to_pixbuf(
- svg_header(colors) + DICT[piece](colors[0]) + svg_footer(),
+ svg_header(colors) + DICT[piece](bw) + svg_footer(),
w=self.scale, h=self.scale)
self._reskin(piece, pixbuf)