[Tux4kids-commits] r1432 - in tuxtype/branches/gsoc-sarah: doc src

Sarah Frisk fou_fou-guest at alioth.debian.org
Fri Aug 14 02:45:17 UTC 2009


Author: fou_fou-guest
Date: 2009-08-14 02:45:16 +0000 (Fri, 14 Aug 2009)
New Revision: 1432

Modified:
   tuxtype/branches/gsoc-sarah/doc/ChangeLog
   tuxtype/branches/gsoc-sarah/src/editor.c
Log:
fixed a bug in ChooseWordList() where file names longer than 8 char were mixing up with other filenames in the menu

Modified: tuxtype/branches/gsoc-sarah/doc/ChangeLog
===================================================================
--- tuxtype/branches/gsoc-sarah/doc/ChangeLog	2009-08-13 23:52:37 UTC (rev 1431)
+++ tuxtype/branches/gsoc-sarah/doc/ChangeLog	2009-08-14 02:45:16 UTC (rev 1432)
@@ -1,3 +1,8 @@
+13 Aug 2009 (svn.debian.org/tux4kids -revision 1432)
+[Sarah Frisk <ssfrisk at gmail.com> }
+	- Fixed a bug in ChooseWordList() where file names longer than 8 char
+	were mixing up with other filenames in the display
+
 13 Aug 2009 (svn.debian.org/tux4kids -revision 1430)
 [Sarah Frisk <ssfrisk at gmail.com> }
 	- Fixed bug/garbage issues

Modified: tuxtype/branches/gsoc-sarah/src/editor.c
===================================================================
--- tuxtype/branches/gsoc-sarah/src/editor.c	2009-08-13 23:52:37 UTC (rev 1431)
+++ tuxtype/branches/gsoc-sarah/src/editor.c	2009-08-14 02:45:16 UTC (rev 1432)
@@ -51,10 +51,10 @@
 
   //Arrays for the list of editable word lists:
   char file_names[MAX_WORD_LISTS][FNLEN];  //names of the files containing lists
-  char list_titles[MAX_WORD_LISTS][MAX_WORD_SIZE]; //text list name to be displayed
+  char list_titles[MAX_WORD_LISTS][MAX_WORD_SIZE+1]; //text list name to be displayed
   //Surfaces of list_titles[] rendered for graphical display:
-  SDL_Surface* white_titles_surf[MAX_WORD_LISTS] = {NULL};  //unselected titles - white lettering; 
-  SDL_Surface* yellow_titles_surf[MAX_WORD_LISTS] = {NULL}; //selected titles - yellow lettering
+  SDL_Surface* white_titles_surf[MAX_WORD_LISTS + 1] = {NULL};  //unselected titles - white lettering; 
+  SDL_Surface* yellow_titles_surf[MAX_WORD_LISTS + 1] = {NULL}; //selected titles - yellow lettering
   // Rects where list names will be drawn on screen:
   static SDL_Rect titleRects[8];
 




More information about the Tux4kids-commits mailing list