[gcompris] click_on_letter: fixed level 11 crash, now accept up to 24 letters on the play board.



commit 4e12a58e13d4345a0ea863df7a78b3d9ba80a511
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Sep 11 17:53:52 2011 +0200

    click_on_letter: fixed level 11 crash, now accept up to 24 letters on the play board.

 src/click_on_letter-activity/click_on_letter.c     |   10 +++++-----
 .../click_on_letter_up.xml.in                      |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/click_on_letter-activity/click_on_letter.c b/src/click_on_letter-activity/click_on_letter.c
index cb25681..7714761 100644
--- a/src/click_on_letter-activity/click_on_letter.c
+++ b/src/click_on_letter-activity/click_on_letter.c
@@ -76,7 +76,7 @@ enum
 #define HORIZONTAL_SEPARATION -1
 
 #define N_LETTER_PER_LINE 6
-#define MAX_N_LETTER_LINE 3
+#define MAX_N_LETTER_LINE 4
 #define MAX_N_ANSWER      (N_LETTER_PER_LINE * MAX_N_LETTER_LINE)
 
 #define NOT_OK		0
@@ -517,10 +517,10 @@ static GooCanvasItem *click_on_letter_create_item(GooCanvasItem *parent)
   if ( ! _repeat() )
   {
     /* Sound was not played, display the letter to find instead */
-    guint x = 300;
-    guint y = 30;
-    guint width = 100;
-    guint height = 100;
+    guint x = 10;
+    guint y = 110;
+    guint width = 80;
+    guint height = 80;
     goo_canvas_rect_new (boardRootItem,
 			 x,
 			 y,
diff --git a/src/click_on_letter_up-activity/click_on_letter_up.xml.in b/src/click_on_letter_up-activity/click_on_letter_up.xml.in
index eb08f32..6065771 100644
--- a/src/click_on_letter_up-activity/click_on_letter_up.xml.in
+++ b/src/click_on_letter_up-activity/click_on_letter_up.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <GCompris>
   <Board
-	 name="click_on_letter"
+	 name="click_on_letter_up"
 	 type="click_on_letter"
 	 section="/reading"
 	 mode="uppercase"
@@ -9,7 +9,7 @@
 	 mandatory_sound_dir="voices/$LOCALE/alphabet"
 	 mandatory_sound_file="voices/$LOCALE/misc/click_on_letter.ogg"
 	 difficulty="1"
-	 author="Pascal Georges (pascal georges1 free fr)"
+	 author="Bruno Coudoin (bruno coudoin gcompris net)"
 	 boarddir="click_on_letter"
 	 demo="1">
 	 <_title>Click on an uppercase letter</_title>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]