X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=2859a26b5e3f03126b427e94d9beb97623f88859;hb=22b91d2842033a4360cb3881f1d9bede15fcebb0;hp=6f6a37c6e0ab2d374c339a9c8d7cae192d8e0df7;hpb=69d209d5c181884731cf94d2faf44b91154e82ce;p=xboard.git diff --git a/xboard.c b/xboard.c index 6f6a37c..2859a26 100644 --- a/xboard.c +++ b/xboard.c @@ -842,15 +842,6 @@ DropMenuEnables dmEnables[] = { { 'Q', "Queen" } }; -Arg shellArgs[] = { - { XtNwidth, 0 }, - { XtNheight, 0 }, - { XtNminWidth, 0 }, - { XtNminHeight, 0 }, - { XtNmaxWidth, 0 }, - { XtNmaxHeight, 0 } -}; - Arg layoutArgs[] = { { XtNborderWidth, 0 }, { XtNdefaultDistance, 0 }, @@ -867,25 +858,6 @@ Arg boardArgs[] = { { XtNheight, 0 } }; -Arg titleArgs[] = { - { XtNjustify, (XtArgVal) XtJustifyRight }, - { XtNlabel, (XtArgVal) "..." }, - { XtNresizable, (XtArgVal) True }, - { XtNresize, (XtArgVal) False } -}; - -Arg messageArgs[] = { - { XtNjustify, (XtArgVal) XtJustifyLeft }, - { XtNlabel, (XtArgVal) "..." }, - { XtNresizable, (XtArgVal) True }, - { XtNresize, (XtArgVal) False } -}; - -Arg timerArgs[] = { - { XtNborderWidth, 0 }, - { XtNjustify, (XtArgVal) XtJustifyLeft } -}; - XtResource clientResources[] = { { "whitePieceColor", "whitePieceColor", XtRString, sizeof(String), XtOffset(AppDataPtr, whitePieceColor), XtRString, @@ -3683,6 +3655,10 @@ static void DrawPiece(piece, square_color, x, y, dest) int square_color, x, y; Drawable dest; { + /* redraw background, since piece might be transparent in some areas */ + BlankSquare(x,y,square_color,piece,dest); + + /* draw piece */ gdk_draw_pixbuf(GDK_WINDOW(GUI_Board->window),NULL, GDK_PIXBUF(SVGpieces[piece]),0,0,x,y,-1,-1, GDK_RGB_DITHER_NORMAL, 0, 0);