X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=801f9a9634e3a0b454d5ef2a0e1f0d54d27eaef9;hb=f0c3d1451610821ae9599c97a779dfebf538611a;hp=a33b765a5223043843a611b560885ec37611c289;hpb=b558b8211337aa5ae00d05553ea509b6db209306;p=xboard.git diff --git a/xboard.c b/xboard.c index a33b765..801f9a9 100644 --- a/xboard.c +++ b/xboard.c @@ -340,7 +340,7 @@ WindowPlacement wpTags; #define SOLID 0 #define OUTLINE 1 -Boolean cairoAnimate = True; +Boolean cairoAnimate; static cairo_surface_t *csBoardWindow, *csBoardBackup; static cairo_surface_t *pngPieceBitmaps[2][(int)BlackPawn]; // scaled pieces as used static cairo_surface_t *pngPieceBitmaps2[2][(int)BlackPawn+4]; // scaled pieces in store @@ -1533,6 +1533,11 @@ XBoard square size (hint): %d\n\ /* * Inhibit shell resizing. */ + + CreateAnyPieces(); + cairoAnimate = *appData.pngDirectory && useTexture == 3 + && strstr(appData.liteBackTextureFile, ".png") && strstr(appData.darkBackTextureFile, ".png"); + shellArgs[0].value = (XtArgVal) &w; shellArgs[1].value = (XtArgVal) &h; XtGetValues(shellWidget, shellArgs, 2); @@ -1546,7 +1551,6 @@ XBoard square size (hint): %d\n\ CreateGCs(False); CreateGrid(); - CreateAnyPieces(); if(appData.logoSize) { // locate and read user logo