X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=blobdiff_plain;f=xboard.c;h=73bd41cfcbff2a5177e57edbeddf68ded0036609;hp=2d3a155d1d8c13647129de27b578f499e45de86c;hb=554e83e0e983b4146d5424be557eaaf6e09ad1b5;hpb=3f6b099b65718c49d05cf803ab74f9994d00b12b diff --git a/xboard.c b/xboard.c index 2d3a155d..73bd41cf 100644 --- a/xboard.c +++ b/xboard.c @@ -4263,7 +4263,7 @@ static void colorDrawPieceImage(piece, square_color, x, y, dest) } break; } - if(appData.upsideDown && flipView) kind ^= 2; // swap white and black pieces + if(appData.upsideDown && flipView) { kind ^= 2; p += p < BlackPawn ? BlackPawn : -BlackPawn; }// swap white and black pieces if(useTexture & square_color+1) { BlankSquare(x, y, square_color, piece, dest, 1); // erase previous contents with background XSetClipMask(xDisplay, wlPieceGC, xpmMask[p]); @@ -8769,6 +8769,7 @@ BeginAnimation(anim, piece, startColor, start) { Pixmap mask; + if(appData.upsideDown && flipView) piece += piece < BlackPawn ? BlackPawn : -BlackPawn; /* The old buffer is initialised with the start square (empty) */ BlankSquare(start->x, start->y, startColor, EmptySquare, anim->saveBuf, 0); anim->prevFrame = *start;