]> git.cworth.org Git - wordgame/blobdiff - rack-fancy.c
Don't display slots for target words less than 5 letters long
[wordgame] / rack-fancy.c
index fbc6e119a471df41aadef06008cde4a2d3aecb8f..2a60f88e336f94d4a902df362f94e462112674b1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright © 2006 Carl Worth
  *
- * This program is free software; you can redistribute it and\/or modify
+ * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2, or (at your option)
  * any later version.
@@ -29,7 +29,7 @@
 
 #define RACK_DICT_ENTRY_OBSCURE        (1<<1)
 #define RACK_DICT_ENTRY_FOUND  (1<<2)
-#define MAX_TILES 6
+#define MAX_TILES 7
 
 typedef struct _tile
 {
@@ -98,7 +98,7 @@ dict_paint_action (void *closure, char *word, dict_entry_t *entry)
     double new_x, new_y;
     int found, show_blanks = FALSE;
 
-    if (strlen (word) < 3)
+    if (strlen (word) < 5)
        return;
 
     found = *entry & RACK_DICT_ENTRY_FOUND;