X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=d9f382a018ca83b9ee7a2028b8054eac760dee34;hb=a9a9de13751f0b8a188d7d11957821e58c7aa03d;hp=dc99bd36502eb0a7e35410e512e5d52baa4fbcc0;hpb=b9cdd7422ad1037d7376bce4f8f2db2669396e83;p=xboard.git diff --git a/xboard.c b/xboard.c index dc99bd3..d9f382a 100644 --- a/xboard.c +++ b/xboard.c @@ -4215,6 +4215,7 @@ static void colorDrawPieceImage(piece, square_color, x, y, dest) } break; } + if(appData.upsideDown && flipView) kind ^= 2; // swap white and black pieces XCopyArea(xDisplay, xpmPieceBitmap[kind][piece], dest, wlPieceGC, 0, 0, squareSize, squareSize, x, y); @@ -8742,6 +8743,7 @@ OverlayPiece(piece, clip, outline, dest) kind = 0; else kind = 2; + if(appData.upsideDown && flipView) kind ^= 2; XCopyArea(xDisplay, xpmPieceBitmap[kind][piece], dest, clip, 0, 0, squareSize, squareSize,