Mercurial > hg > xemacs-beta
comparison src/redisplay-output.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 9f59509498e1 |
children | 41ff10fd062f |
comparison
equal
deleted
inserted
replaced
184:bcd2674570bf | 185:3d6bfa290dbd |
---|---|
100 | 100 |
101 dlp = Dynarr_atp (ddla, line); | 101 dlp = Dynarr_atp (ddla, line); |
102 if (line >= Dynarr_largest (cdla)) | 102 if (line >= Dynarr_largest (cdla)) |
103 { | 103 { |
104 clp = &dl; | 104 clp = &dl; |
105 clp->display_blocks = Dynarr_new (struct display_block); | 105 clp->display_blocks = Dynarr_new (display_block); |
106 } | 106 } |
107 else | 107 else |
108 { | 108 { |
109 clp = Dynarr_atp (cdla, line); | 109 clp = Dynarr_atp (cdla, line); |
110 if (clp->display_blocks) | 110 if (clp->display_blocks) |
142 | 142 |
143 if (db_elt >= Dynarr_largest (clp->display_blocks)) | 143 if (db_elt >= Dynarr_largest (clp->display_blocks)) |
144 { | 144 { |
145 cdb = &db; | 145 cdb = &db; |
146 memcpy (cdb, ddb, sizeof (struct display_block)); | 146 memcpy (cdb, ddb, sizeof (struct display_block)); |
147 cdb->runes = Dynarr_new (struct rune); | 147 cdb->runes = Dynarr_new (rune); |
148 Dynarr_add (clp->display_blocks, *cdb); | 148 Dynarr_add (clp->display_blocks, *cdb); |
149 } | 149 } |
150 else | 150 else |
151 { | 151 { |
152 rune_dynarr *tr; | 152 rune_dynarr *tr; |
867 || (ADJ_ENDPOS && (new_point >= ADJ_BUFPOS) | 867 || (ADJ_ENDPOS && (new_point >= ADJ_BUFPOS) |
868 && (new_point <= ADJ_BUFPOS)))) | 868 && (new_point <= ADJ_BUFPOS)))) |
869 { | 869 { |
870 rb->cursor_type = CURSOR_ON; | 870 rb->cursor_type = CURSOR_ON; |
871 dl->cursor_elt = cur_rb; | 871 dl->cursor_elt = cur_rb; |
872 | 872 |
873 | 873 |
874 output_display_line (w, 0, cla, cur_dl, rb->xpos, | 874 output_display_line (w, 0, cla, cur_dl, rb->xpos, |
875 rb->xpos + rb->width); | 875 rb->xpos + rb->width); |
876 | 876 |
877 w->last_point_x[CURRENT_DISP] = cur_rb; | 877 w->last_point_x[CURRENT_DISP] = cur_rb; |
987 x -= FRAME_BORDER_WIDTH (f); | 987 x -= FRAME_BORDER_WIDTH (f); |
988 width += FRAME_BORDER_WIDTH (f); | 988 width += FRAME_BORDER_WIDTH (f); |
989 } | 989 } |
990 if (window_is_rightmost (w)) | 990 if (window_is_rightmost (w)) |
991 width += FRAME_BORDER_WIDTH (f); | 991 width += FRAME_BORDER_WIDTH (f); |
992 | 992 |
993 y = FRAME_TOP_BORDER_START (f) - 1; | 993 y = FRAME_TOP_BORDER_START (f) - 1; |
994 height = FRAME_BORDER_HEIGHT (f) + 1; | 994 height = FRAME_BORDER_HEIGHT (f) + 1; |
995 | 995 |
996 DEVMETH (d, clear_region, (window, DEFAULT_INDEX, x, y, width, height)); | 996 DEVMETH (d, clear_region, (window, DEFAULT_INDEX, x, y, width, height)); |
997 } | 997 } |