Mercurial > emacs
comparison src/xterm.c @ 9577:3bf81e215f18
(do_line_dance): Decrement index only once per loop.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 18 Oct 1994 01:29:09 +0000 |
parents | b36d5e88cccc |
children | 41681efe1086 |
comparison
equal
deleted
inserted
replaced
9576:14cd96eda0e3 | 9577:3bf81e215f18 |
---|---|
1341 | 1341 |
1342 for (i = ht; --i >=0; ) | 1342 for (i = ht; --i >=0; ) |
1343 if (line_dance[i] != -1 && (distance = line_dance[i]-i) < 0) | 1343 if (line_dance[i] != -1 && (distance = line_dance[i]-i) < 0) |
1344 { | 1344 { |
1345 for (j = i; (--j >= 0 && line_dance[j] != -1 | 1345 for (j = i; (--j >= 0 && line_dance[j] != -1 |
1346 && line_dance[j]-j == distance); --j); | 1346 && line_dance[j]-j == distance);); |
1347 /* Copy (j,i] downward from (j+distance, i+distance] */ | 1347 /* Copy (j,i] downward from (j+distance, i+distance] */ |
1348 XCopyArea (x_current_display, FRAME_X_WINDOW (f), | 1348 XCopyArea (x_current_display, FRAME_X_WINDOW (f), |
1349 FRAME_X_WINDOW (f), f->display.x->normal_gc, | 1349 FRAME_X_WINDOW (f), f->display.x->normal_gc, |
1350 intborder, CHAR_TO_PIXEL_ROW (f, j+1+distance), | 1350 intborder, CHAR_TO_PIXEL_ROW (f, j+1+distance), |
1351 f->width * FONT_WIDTH (f->display.x->font), | 1351 f->width * FONT_WIDTH (f->display.x->font), |