From 0873edcfd9bd9857bd17b4489f39d6d5c91a06c8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 8 May 2007 07:00:45 -0700 Subject: [PATCH] Display all unfound, obscure words in blue at the end of a puzzle. --- rack-fancy.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); -- 2.43.0