/*
* 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.
#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
{
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;
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);