From: Carl Worth Date: Tue, 8 May 2007 14:00:45 +0000 (-0700) Subject: Display all unfound, obscure words in blue at the end of a puzzle. X-Git-Url: https://git.cworth.org/git?p=wordgame;a=commitdiff_plain;h=0873edcfd9bd9857bd17b4489f39d6d5c91a06c8 Display all unfound, obscure words in blue at the end of a puzzle. --- diff --git a/rack-fancy.c b/rack-fancy.c index 2a60f88..46b1acd 100644 --- a/rack-fancy.c +++ b/rack-fancy.c @@ -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);