X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=d9f382a018ca83b9ee7a2028b8054eac760dee34;hb=a9a9de13751f0b8a188d7d11957821e58c7aa03d;hp=0f12af6e9e2c8d2efaf3082bb8f0642bc9fff4a6;hpb=c95ef32a700132a134f335f857ca6f1b6f3c169f;p=xboard.git diff --git a/xboard.c b/xboard.c index 0f12af6..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); @@ -8119,7 +8120,8 @@ DoInputCallback(closure, source, xid) /* read from stdin */ rl_callback_read_char(); - /* redisplay the current line */ + + /* redisplay the current line, check special case for login and password */ if(sending_ICS_password) { int i; char buf[MSG_SIZ]; @@ -8741,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,