(get_gstring): If cursor_width or cursor_bidi is changed, don't
authorhanda <handa>
Mon, 26 Jul 2004 12:52:17 +0000 (12:52 +0000)
committerhanda <handa>
Mon, 26 Jul 2004 12:52:17 +0000 (12:52 +0000)
use a cache.

src/draw.c

index 8069d40..25e2867 100644 (file)
@@ -1512,7 +1512,9 @@ get_gstring (MFrame *frame, MText *mt, int pos, int to, MDrawControl *control)
              || gstring->tick != frame->tick
              || memcmp (control, &gstring->control,
                         (char *) (&control->with_cursor)
-                        - (char *) (control)))
+                        - (char *) (control))
+             || control->cursor_width != gstring->control.cursor_width
+             || control->cursor_bidi != gstring->control.cursor_bidi)
            {
              mtext_detach_property (prop);
              gstring = NULL;