Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2009-03-15 21:57:04 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2009-03-15 21:57:04 (GMT)
commit0caf1a7d6c871e7307b80934ae6e69ddceb23e98 (patch)
tree1bda83356e01f1e6852c2dfc8875fe62bacac69d /src/boards
parentd0fdcf0e22566ef60b29beb49cc8bb3fb1360037 (diff)
- Replaced letter that differenciate blocks for
color blinds by ASCII symbols that are locale agnostic. svn path=/trunk/; revision=3775
Diffstat (limited to 'src/boards')
-rw-r--r--src/boards/hanoi.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/boards/hanoi.c b/src/boards/hanoi.c
index e13a4c3..555c37f 100644
--- a/src/boards/hanoi.c
+++ b/src/boards/hanoi.c
@@ -68,7 +68,7 @@ static int item_height;
static guint colorlist [] =
{
- 0x00FFFFFF,
+ 0x00C0C0C0,
0xA00000FF,
0xF00000FF,
0x00A000FF,
@@ -77,7 +77,7 @@ static guint colorlist [] =
0x0000FFFF,
0x505000FF,
0xA0A000FF,
- 0xF0F000FF,
+ 0xC0C080FF,
0x005050FF,
0x00A0A0FF,
0x500050FF,
@@ -86,6 +86,24 @@ static guint colorlist [] =
};
#define NUMBER_OF_COLOR G_N_ELEMENTS(colorlist)
+static char symbollist [NUMBER_OF_COLOR] =
+ {
+ '!',
+ '/',
+ '<',
+ '>',
+ '&',
+ '~',
+ '#',
+ '{',
+ '%',
+ '|',
+ '?',
+ '}',
+ '=',
+ '+',
+ '*'
+ };
/* Description of this plugin */
static BoardPlugin menu_bp =
@@ -529,16 +547,16 @@ static GnomeCanvasItem *hanoi_create_item(GnomeCanvasGroup *parent)
"width_units", (double)1,
NULL);
- car[0] = 'a' + position[i][j]->color;
+ car[0] = symbollist[position[i][j]->color];
car[1] = '\0';
position[i][j]->item_text = \
gnome_canvas_item_new (boardRootItem,
gnome_canvas_text_get_type (),
"text", &car,
- "font", gc_skin_font_board_tiny,
+ "font", "sans bold 14",
"x", (double) position[i][j]->xt,
- "y", (double) position[i][j]->yt,
+ "y", (double) position[i][j]->yt - 3,
"anchor", GTK_ANCHOR_NORTH,
"fill_color", "white",
"justification", GTK_JUSTIFY_CENTER,