From e9fca82919fbecd11d6d34d3d49f38be637d47cc Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 4 Oct 2013 10:12:59 +0200 Subject: [PATCH] Change Blind-Tiger symbol to claw --- draw.c | 5 +- svg/BlackClaw.svg | 162 +++++++++++++++++++++++++++++++++++++++++++++++++++++ svg/WhiteClaw.svg | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 326 insertions(+), 2 deletions(-) create mode 100644 svg/BlackClaw.svg create mode 100644 svg/WhiteClaw.svg diff --git a/draw.c b/draw.c index d6be51c..6dfe1a8 100644 --- a/draw.c +++ b/draw.c @@ -140,7 +140,7 @@ SelectPieces(VariantClass v) for(p=0; p<=(int)WhiteKing; p++) pngPieceBitmaps[i][p] = pngPieceBitmaps2[i][p]; // defaults if(v == VariantShogi) { - pngPieceBitmaps[i][(int)WhiteCannon] = pngPieceBitmaps2[i][(int)WhiteKing+1]; + pngPieceBitmaps[i][(int)WhiteCannon] = pngPieceBitmaps2[i][(int)WhiteTokin]; pngPieceBitmaps[i][(int)WhiteNightrider] = pngPieceBitmaps2[i][(int)WhiteKing+2]; pngPieceBitmaps[i][(int)WhiteGrasshopper] = pngPieceBitmaps2[i][(int)WhiteKing+3]; pngPieceBitmaps[i][(int)WhiteSilver] = pngPieceBitmaps2[i][(int)WhiteKing+4]; @@ -156,6 +156,7 @@ SelectPieces(VariantClass v) pngPieceBitmaps[i][(int)WhiteMarshall] = pngPieceBitmaps2[i][(int)WhiteAlfil]; } if(v == VariantChu) { + pngPieceBitmaps[i][(int)WhiteNightrider] = pngPieceBitmaps2[i][(int)WhiteKing+1]; pngPieceBitmaps[i][(int)WhiteUnicorn] = pngPieceBitmaps2[i][(int)WhiteCat]; pngPieceBitmaps[i][(int)WhiteSilver] = pngPieceBitmaps2[i][(int)WhiteSword]; pngPieceBitmaps[i][(int)WhiteFalcon] = pngPieceBitmaps2[i][(int)WhiteDagger]; @@ -236,7 +237,7 @@ char *pngPieceNames[] = // must be in same order as internal piece encoding "Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Princess", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "Lion", "GoldPawn", "HSword", "PromoHorse", "PromoDragon", "Leopard", "PromoSword", "King", "Queen", "Lion", "PromoRook", "PromoHSword", "Dolphin", "Chancellor", "Unicorn", "Hawk", "Sword", "Princess", "HCrown", "Knight", "Elephant", "PromoBishop", "King", - "GoldPawn", "GoldKnight", "GoldLance", "GoldSilver", NULL + "Claw", "GoldKnight", "GoldLance", "GoldSilver", NULL }; RsvgHandle * diff --git a/svg/BlackClaw.svg b/svg/BlackClaw.svg new file mode 100644 index 0000000..1dcffea --- /dev/null +++ b/svg/BlackClaw.svg @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/svg/WhiteClaw.svg b/svg/WhiteClaw.svg new file mode 100644 index 0000000..99c4a68 --- /dev/null +++ b/svg/WhiteClaw.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + -- 1.7.0.4