]> git.cworth.org Git - wordgame/commitdiff
Display all unfound, obscure words in blue at the end of a puzzle.
authorCarl Worth <cworth@cworth.org>
Tue, 8 May 2007 14:00:45 +0000 (07:00 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 8 May 2007 14:00:45 +0000 (07:00 -0700)
rack-fancy.c

index 2a60f88e336f94d4a902df362f94e462112674b1..46b1acd1898032734f2481e8dbce6d1222c9860b 100644 (file)
@@ -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);