Mercurial > hg > xemacs-beta
comparison src/gutter.c @ 639:4b7d425dd3c2
[xemacs-hg @ 2001-07-28 05:08:58 by andyp]
Stop flickering on OpenMotif.
author | andyp |
---|---|
date | Sat, 28 Jul 2001 05:09:03 +0000 |
parents | af57a77cbc92 |
children | fdefd0186b75 |
comparison
equal
deleted
inserted
replaced
638:373ced43e288 | 639:4b7d425dd3c2 |
---|---|
422 w->windows_changed || f->windows_structure_changed || | 422 w->windows_changed || f->windows_structure_changed || |
423 cdla_len != Dynarr_length (ddla) || | 423 cdla_len != Dynarr_length (ddla) || |
424 (f->extents_changed && w->gutter_extent_modiff[pos])) | 424 (f->extents_changed && w->gutter_extent_modiff[pos])) |
425 { | 425 { |
426 #ifdef DEBUG_GUTTERS | 426 #ifdef DEBUG_GUTTERS |
427 printf ("gutter redisplay [%dx%d@%d+%d] triggered by %s,\n", | 427 stderr_out ("gutter redisplay [%s %dx%d@%d+%d] triggered by %s,\n", |
428 pos == TOP_GUTTER ? "TOP" : | |
429 pos == BOTTOM_GUTTER ? "BOTTOM" : | |
430 pos == LEFT_GUTTER ? "LEFT" : "RIGHT", | |
428 width, height, x, y, force ? "force" : | 431 width, height, x, y, force ? "force" : |
429 f->faces_changed ? "f->faces_changed" : | 432 f->faces_changed ? "f->faces_changed" : |
430 f->frame_changed ? "f->frame_changed" : | 433 f->frame_changed ? "f->frame_changed" : |
431 f->gutter_changed ? "f->gutter_changed" : | 434 f->gutter_changed ? "f->gutter_changed" : |
432 f->glyphs_changed ? "f->glyphs_changed" : | 435 f->glyphs_changed ? "f->glyphs_changed" : |
669 return; | 672 return; |
670 if (((x + width) < g_x) || (x > (g_x + g_width))) | 673 if (((x + width) < g_x) || (x > (g_x + g_width))) |
671 return; | 674 return; |
672 | 675 |
673 #ifdef DEBUG_WIDGETS | 676 #ifdef DEBUG_WIDGETS |
674 printf ("redrawing gutter after expose %d+%d, %dx%d\n", | 677 stderr_out ("redrawing gutter after expose %d+%d, %dx%d\n", |
675 x, y, width, height); | 678 x, y, width, height); |
676 #endif | 679 #endif |
677 /* #### optimize this - redrawing the whole gutter for every expose | 680 /* #### optimize this - redrawing the whole gutter for every expose |
678 is very expensive. We reset the current display lines because if | 681 is very expensive. We reset the current display lines because if |
679 they're being exposed they are no longer current. */ | 682 they're being exposed they are no longer current. */ |