From: H.G. Muller Date: Fri, 5 Oct 2012 08:41:02 +0000 (+0200) Subject: Switch to using 64x64 png images X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d9e6a27b308737052647882e8738bbb5e89f2be1;p=xboard.git Switch to using 64x64 png images The bitmap scaling works better when the needed factors are not too large, as the svg rendering's anti-aliasing did not blur more than 1 pixel. So after shrinking too much the images are not effectively anti-aliased anymore. --- diff --git a/png/BlackAdvisor.png b/png/BlackAdvisor.png index 9be3bde..604ed17 100644 Binary files a/png/BlackAdvisor.png and b/png/BlackAdvisor.png differ diff --git a/png/BlackArchbishop.png b/png/BlackArchbishop.png index ea8673d..983054c 100644 Binary files a/png/BlackArchbishop.png and b/png/BlackArchbishop.png differ diff --git a/png/BlackBishop.png b/png/BlackBishop.png index 22bdd78..eb7b7f0 100644 Binary files a/png/BlackBishop.png and b/png/BlackBishop.png differ diff --git a/png/BlackCanon.png b/png/BlackCanon.png index 9a9f2a4..437000b 100644 Binary files a/png/BlackCanon.png and b/png/BlackCanon.png differ diff --git a/png/BlackChancellor.png b/png/BlackChancellor.png index 83c0314..eeb7a82 100644 Binary files a/png/BlackChancellor.png and b/png/BlackChancellor.png differ diff --git a/png/BlackCobra.png b/png/BlackCobra.png index 0648c54..35f1ade 100644 Binary files a/png/BlackCobra.png and b/png/BlackCobra.png differ diff --git a/png/BlackCommoner.png b/png/BlackCommoner.png index 42d7fb9..25801f2 100644 Binary files a/png/BlackCommoner.png and b/png/BlackCommoner.png differ diff --git a/png/BlackCrownedBishop.png b/png/BlackCrownedBishop.png index fab1810..e808b4c 100644 Binary files a/png/BlackCrownedBishop.png and b/png/BlackCrownedBishop.png differ diff --git a/png/BlackCrownedRook.png b/png/BlackCrownedRook.png index b8589eb..c338bb4 100644 Binary files a/png/BlackCrownedRook.png and b/png/BlackCrownedRook.png differ diff --git a/png/BlackElephant.png b/png/BlackElephant.png index f967181..a32742a 100644 Binary files a/png/BlackElephant.png and b/png/BlackElephant.png differ diff --git a/png/BlackGold.png b/png/BlackGold.png index 4af913d..8f45faa 100644 Binary files a/png/BlackGold.png and b/png/BlackGold.png differ diff --git a/png/BlackGoldKnight.png b/png/BlackGoldKnight.png index e4c6761..c3f3c60 100644 Binary files a/png/BlackGoldKnight.png and b/png/BlackGoldKnight.png differ diff --git a/png/BlackGoldLance.png b/png/BlackGoldLance.png index 1430470..37d5f54 100644 Binary files a/png/BlackGoldLance.png and b/png/BlackGoldLance.png differ diff --git a/png/BlackGoldPawn.png b/png/BlackGoldPawn.png index 8f434a2..c368ee6 100644 Binary files a/png/BlackGoldPawn.png and b/png/BlackGoldPawn.png differ diff --git a/png/BlackGoldSilver.png b/png/BlackGoldSilver.png index cbf79aa..f2c5a50 100644 Binary files a/png/BlackGoldSilver.png and b/png/BlackGoldSilver.png differ diff --git a/png/BlackHawk.png b/png/BlackHawk.png index 635d3cb..accaadd 100644 Binary files a/png/BlackHawk.png and b/png/BlackHawk.png differ diff --git a/png/BlackKing.png b/png/BlackKing.png index 6dacc3c..2a2f28b 100644 Binary files a/png/BlackKing.png and b/png/BlackKing.png differ diff --git a/png/BlackKnight.png b/png/BlackKnight.png index 6ca14c2..28d6818 100644 Binary files a/png/BlackKnight.png and b/png/BlackKnight.png differ diff --git a/png/BlackLance.png b/png/BlackLance.png index 7ead46a..adc840e 100644 Binary files a/png/BlackLance.png and b/png/BlackLance.png differ diff --git a/png/BlackMarshall.png b/png/BlackMarshall.png index 53c716c..5158c56 100644 Binary files a/png/BlackMarshall.png and b/png/BlackMarshall.png differ diff --git a/png/BlackNightrider.png b/png/BlackNightrider.png index 0a99e3b..72b9b4a 100644 Binary files a/png/BlackNightrider.png and b/png/BlackNightrider.png differ diff --git a/png/BlackPawn.png b/png/BlackPawn.png index 213369c..b8e4a87 100644 Binary files a/png/BlackPawn.png and b/png/BlackPawn.png differ diff --git a/png/BlackPrincess.png b/png/BlackPrincess.png index f7f4645..238532a 100644 Binary files a/png/BlackPrincess.png and b/png/BlackPrincess.png differ diff --git a/png/BlackQueen.png b/png/BlackQueen.png index f44f6ae..2c760da 100644 Binary files a/png/BlackQueen.png and b/png/BlackQueen.png differ diff --git a/png/BlackRook.png b/png/BlackRook.png index 80e10d0..42ac028 100644 Binary files a/png/BlackRook.png and b/png/BlackRook.png differ diff --git a/png/BlackUnicorn.png b/png/BlackUnicorn.png index ef915b5..1e577ad 100644 Binary files a/png/BlackUnicorn.png and b/png/BlackUnicorn.png differ diff --git a/png/DarkSquare.png b/png/DarkSquare.png index 9323ca2..2a323b8 100644 Binary files a/png/DarkSquare.png and b/png/DarkSquare.png differ diff --git a/png/LightSquare.png b/png/LightSquare.png index 1e4703d..b444e0d 100644 Binary files a/png/LightSquare.png and b/png/LightSquare.png differ diff --git a/png/NeutralSquare.png b/png/NeutralSquare.png index b5e94d9..eba0860 100644 Binary files a/png/NeutralSquare.png and b/png/NeutralSquare.png differ diff --git a/png/WhiteAdvisor.png b/png/WhiteAdvisor.png index 41861dc..cf1f4cf 100644 Binary files a/png/WhiteAdvisor.png and b/png/WhiteAdvisor.png differ diff --git a/png/WhiteArchbishop.png b/png/WhiteArchbishop.png index 09c4530..28259e0 100644 Binary files a/png/WhiteArchbishop.png and b/png/WhiteArchbishop.png differ diff --git a/png/WhiteBishop.png b/png/WhiteBishop.png index 540611c..b2c1980 100644 Binary files a/png/WhiteBishop.png and b/png/WhiteBishop.png differ diff --git a/png/WhiteCanon.png b/png/WhiteCanon.png index 5f19f7b..20d5655 100644 Binary files a/png/WhiteCanon.png and b/png/WhiteCanon.png differ diff --git a/png/WhiteChancellor.png b/png/WhiteChancellor.png index 66e50dc..2cc3f57 100644 Binary files a/png/WhiteChancellor.png and b/png/WhiteChancellor.png differ diff --git a/png/WhiteCobra.png b/png/WhiteCobra.png index fbe592d..1b29df7 100644 Binary files a/png/WhiteCobra.png and b/png/WhiteCobra.png differ diff --git a/png/WhiteCommoner.png b/png/WhiteCommoner.png index 267e610..abdab67 100644 Binary files a/png/WhiteCommoner.png and b/png/WhiteCommoner.png differ diff --git a/png/WhiteCrownedBishop.png b/png/WhiteCrownedBishop.png index fac4d94..ee28c21 100644 Binary files a/png/WhiteCrownedBishop.png and b/png/WhiteCrownedBishop.png differ diff --git a/png/WhiteCrownedRook.png b/png/WhiteCrownedRook.png index e593b58..beeb2f2 100644 Binary files a/png/WhiteCrownedRook.png and b/png/WhiteCrownedRook.png differ diff --git a/png/WhiteElephant.png b/png/WhiteElephant.png index b13b561..dbacd3f 100644 Binary files a/png/WhiteElephant.png and b/png/WhiteElephant.png differ diff --git a/png/WhiteGold.png b/png/WhiteGold.png index 0229c1c..e0446ea 100644 Binary files a/png/WhiteGold.png and b/png/WhiteGold.png differ diff --git a/png/WhiteGoldKnight.png b/png/WhiteGoldKnight.png index b986968..9a81fe3 100644 Binary files a/png/WhiteGoldKnight.png and b/png/WhiteGoldKnight.png differ diff --git a/png/WhiteGoldLance.png b/png/WhiteGoldLance.png index 60e1e31..b6ebc40 100644 Binary files a/png/WhiteGoldLance.png and b/png/WhiteGoldLance.png differ diff --git a/png/WhiteGoldPawn.png b/png/WhiteGoldPawn.png index 180b61c..ab19e36 100644 Binary files a/png/WhiteGoldPawn.png and b/png/WhiteGoldPawn.png differ diff --git a/png/WhiteGoldSilver.png b/png/WhiteGoldSilver.png index edf4221..553773f 100644 Binary files a/png/WhiteGoldSilver.png and b/png/WhiteGoldSilver.png differ diff --git a/png/WhiteHawk.png b/png/WhiteHawk.png index f1b09d9..bafc079 100644 Binary files a/png/WhiteHawk.png and b/png/WhiteHawk.png differ diff --git a/png/WhiteKing.png b/png/WhiteKing.png index a711693..1384044 100644 Binary files a/png/WhiteKing.png and b/png/WhiteKing.png differ diff --git a/png/WhiteKnight.png b/png/WhiteKnight.png index 13460e9..fcd55b0 100644 Binary files a/png/WhiteKnight.png and b/png/WhiteKnight.png differ diff --git a/png/WhiteLance.png b/png/WhiteLance.png index a3030f1..926a1ed 100644 Binary files a/png/WhiteLance.png and b/png/WhiteLance.png differ diff --git a/png/WhiteMarshall.png b/png/WhiteMarshall.png index bf933e2..4150dfe 100644 Binary files a/png/WhiteMarshall.png and b/png/WhiteMarshall.png differ diff --git a/png/WhiteNightrider.png b/png/WhiteNightrider.png index 911dfd7..0d806c7 100644 Binary files a/png/WhiteNightrider.png and b/png/WhiteNightrider.png differ diff --git a/png/WhitePawn.png b/png/WhitePawn.png index 5d52c87..39a58a6 100644 Binary files a/png/WhitePawn.png and b/png/WhitePawn.png differ diff --git a/png/WhitePrincess.png b/png/WhitePrincess.png index 72c2d2f..d9e8054 100644 Binary files a/png/WhitePrincess.png and b/png/WhitePrincess.png differ diff --git a/png/WhiteQueen.png b/png/WhiteQueen.png index d22ddc6..5b5972a 100644 Binary files a/png/WhiteQueen.png and b/png/WhiteQueen.png differ diff --git a/png/WhiteRook.png b/png/WhiteRook.png index ad55e03..bf889e7 100644 Binary files a/png/WhiteRook.png and b/png/WhiteRook.png differ diff --git a/png/WhiteUnicorn.png b/png/WhiteUnicorn.png index 9ad6b92..87414c6 100644 Binary files a/png/WhiteUnicorn.png and b/png/WhiteUnicorn.png differ diff --git a/png/eo_Analyzing.png b/png/eo_Analyzing.png index 656e34a..72ffdbb 100644 Binary files a/png/eo_Analyzing.png and b/png/eo_Analyzing.png differ diff --git a/png/eo_Black.png b/png/eo_Black.png index 9a0b226..8e7d5ff 100644 Binary files a/png/eo_Black.png and b/png/eo_Black.png differ diff --git a/png/eo_Clear.png b/png/eo_Clear.png index a3b26fa..880db76 100644 Binary files a/png/eo_Clear.png and b/png/eo_Clear.png differ diff --git a/png/eo_Ponder.png b/png/eo_Ponder.png index 143bab9..cf8913e 100644 Binary files a/png/eo_Ponder.png and b/png/eo_Ponder.png differ diff --git a/png/eo_Thinking.png b/png/eo_Thinking.png index eaf1f5a..66abe2c 100644 Binary files a/png/eo_Thinking.png and b/png/eo_Thinking.png differ diff --git a/png/eo_Unknown.png b/png/eo_Unknown.png index 139f3c0..6a87941 100644 Binary files a/png/eo_Unknown.png and b/png/eo_Unknown.png differ diff --git a/png/eo_White.png b/png/eo_White.png index 6d4b444..913dbd4 100644 Binary files a/png/eo_White.png and b/png/eo_White.png differ diff --git a/png/icon_black.png b/png/icon_black.png index 464e762..840b5ea 100644 Binary files a/png/icon_black.png and b/png/icon_black.png differ diff --git a/png/icon_white.png b/png/icon_white.png index 8e7cb31..bb01345 100644 Binary files a/png/icon_white.png and b/png/icon_white.png differ diff --git a/xboard.c b/xboard.c index 49ab155..55655a5 100644 --- a/xboard.c +++ b/xboard.c @@ -2249,7 +2249,7 @@ ScaleOnePiece (char *name, int color, int piece) pngPieceImages[color][piece] = img = cairo_image_surface_create_from_png (buf); w = cairo_image_surface_get_width (img); h = cairo_image_surface_get_height (img); - if(w != 256 || h != 256) { printf("Bad png size %dx%d in %s\n", w, h, buf); exit(1); } + if(w != 64 || h != 64) { printf("Bad png size %dx%d in %s\n", w, h, buf); exit(1); } } // create new bitmap to hold scaled piece image (and remove any old) @@ -2258,7 +2258,7 @@ ScaleOnePiece (char *name, int color, int piece) if(piece <= WhiteKing) pngPieceBitmaps[color][piece] = cs; // scaled copying of the raw png image cr = cairo_create(cs); - cairo_scale(cr, squareSize/256., squareSize/256.); + cairo_scale(cr, squareSize/64., squareSize/64.); cairo_set_source_surface (cr, img, 0, 0); cairo_paint (cr); cairo_destroy (cr);