]> git.cworth.org Git - wordgame/blobdiff - rack-fancy.c
Display all unfound, obscure words in blue at the end of a puzzle.
[wordgame] / rack-fancy.c
index a8578cccd34fbb03ace43424156b56d22fb2c927..46b1acd1898032734f2481e8dbce6d1222c9860b 100644 (file)
@@ -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;
@@ -121,11 +121,16 @@ dict_paint_action (void *closure, char *word, dict_entry_t *entry)
        break;
     }
 
-    /* Don't bother displaying unfound obscure words. */
+    /* "Obscure" words get some special coloring. */
     if (*entry & RACK_DICT_ENTRY_OBSCURE) {
-       if (! found)
-           return;
-       cairo_set_source_rgb (cr, 0, 1, 0); /* green */
+       if (found) {
+           cairo_set_source_rgb (cr, 0, 1, 0); /* green */
+       } else {
+           if (cursor->show == DICT_PAINT_CURSOR_SHOW_ALL)
+               cairo_set_source_rgb (cr, 0, 0, 1); /* blue */
+           else
+               return;
+       }
     }
 
     cairo_move_to (cr, cursor->x, cursor->y);