diff options
| author | Richard M. Stallman | 1996-09-21 04:17:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-21 04:17:30 +0000 |
| commit | 29ec5d84b23e10705b81ecab82779aa1d464c204 (patch) | |
| tree | 9bd141499e7be9291ce27795091291cb21437ee0 /src | |
| parent | a2f016e3c79e4adaeb8549e5603138f1495017a9 (diff) | |
| download | emacs-29ec5d84b23e10705b81ecab82779aa1d464c204.tar.gz emacs-29ec5d84b23e10705b81ecab82779aa1d464c204.zip | |
(make_frame_glyphs, update_line, update_frame)
(scroll_frame_lines, char_ins_del_cost): Use FRAME_WINDOW_WIDTH.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 57c6903a9ab..47334fc7375 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -223,7 +223,7 @@ make_frame_glyphs (frame, empty) | |||
| 223 | int empty; | 223 | int empty; |
| 224 | { | 224 | { |
| 225 | register int i; | 225 | register int i; |
| 226 | register width = FRAME_WIDTH (frame); | 226 | register width = FRAME_WINDOW_WIDTH (frame); |
| 227 | register height = FRAME_HEIGHT (frame); | 227 | register height = FRAME_HEIGHT (frame); |
| 228 | register struct frame_glyphs *new | 228 | register struct frame_glyphs *new |
| 229 | = (struct frame_glyphs *) xmalloc (sizeof (struct frame_glyphs)); | 229 | = (struct frame_glyphs *) xmalloc (sizeof (struct frame_glyphs)); |
| @@ -609,7 +609,7 @@ scroll_frame_lines (frame, from, end, amount, newpos) | |||
| 609 | register struct frame_glyphs *current_frame | 609 | register struct frame_glyphs *current_frame |
| 610 | = FRAME_CURRENT_GLYPHS (frame); | 610 | = FRAME_CURRENT_GLYPHS (frame); |
| 611 | int pos_adjust; | 611 | int pos_adjust; |
| 612 | int width = FRAME_WIDTH (frame); | 612 | int width = FRAME_WINDOW_WIDTH (frame); |
| 613 | 613 | ||
| 614 | if (!line_ins_del_ok) | 614 | if (!line_ins_del_ok) |
| 615 | return 0; | 615 | return 0; |
| @@ -1331,7 +1331,7 @@ update_frame (f, force, inhibit_hairy_id) | |||
| 1331 | } | 1331 | } |
| 1332 | while (row > top && col == 0); | 1332 | while (row > top && col == 0); |
| 1333 | 1333 | ||
| 1334 | if (col >= FRAME_WIDTH (f)) | 1334 | if (col >= FRAME_WINDOW_WIDTH (f)) |
| 1335 | { | 1335 | { |
| 1336 | col = 0; | 1336 | col = 0; |
| 1337 | if (row < FRAME_HEIGHT (f) - 1) | 1337 | if (row < FRAME_HEIGHT (f) - 1) |
| @@ -1535,7 +1535,7 @@ count_match (str1, str2) | |||
| 1535 | /* Char insertion/deletion cost vector, from term.c */ | 1535 | /* Char insertion/deletion cost vector, from term.c */ |
| 1536 | extern int *char_ins_del_vector; | 1536 | extern int *char_ins_del_vector; |
| 1537 | 1537 | ||
| 1538 | #define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_WIDTH((f))]) | 1538 | #define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_WINDOW_WIDTH((f))]) |
| 1539 | 1539 | ||
| 1540 | static void | 1540 | static void |
| 1541 | update_line (frame, vpos) | 1541 | update_line (frame, vpos) |
| @@ -1583,7 +1583,7 @@ update_line (frame, vpos) | |||
| 1583 | spaces all the way to the frame edge | 1583 | spaces all the way to the frame edge |
| 1584 | so that the reverse video extends all the way across. */ | 1584 | so that the reverse video extends all the way across. */ |
| 1585 | 1585 | ||
| 1586 | while (olen < FRAME_WIDTH (frame) - 1) | 1586 | while (olen < FRAME_WINDOW_WIDTH (frame) - 1) |
| 1587 | obody[olen++] = SPACEGLYPH; | 1587 | obody[olen++] = SPACEGLYPH; |
| 1588 | } | 1588 | } |
| 1589 | } | 1589 | } |
| @@ -1629,7 +1629,7 @@ update_line (frame, vpos) | |||
| 1629 | all the way to the frame edge | 1629 | all the way to the frame edge |
| 1630 | so that the reverse video extends all the way across. */ | 1630 | so that the reverse video extends all the way across. */ |
| 1631 | 1631 | ||
| 1632 | while (nlen < FRAME_WIDTH (frame) - 1) | 1632 | while (nlen < FRAME_WINDOW_WIDTH (frame) - 1) |
| 1633 | nbody[nlen++] = SPACEGLYPH; | 1633 | nbody[nlen++] = SPACEGLYPH; |
| 1634 | } | 1634 | } |
| 1635 | 1635 | ||
| @@ -1821,7 +1821,7 @@ update_line (frame, vpos) | |||
| 1821 | there is no need to do clear-to-eol at the end. | 1821 | there is no need to do clear-to-eol at the end. |
| 1822 | (and it would not be safe, since cursor is not | 1822 | (and it would not be safe, since cursor is not |
| 1823 | going to be "at the margin" after the text is done) */ | 1823 | going to be "at the margin" after the text is done) */ |
| 1824 | if (nlen == FRAME_WIDTH (frame)) | 1824 | if (nlen == FRAME_WINDOW_WIDTH (frame)) |
| 1825 | olen = 0; | 1825 | olen = 0; |
| 1826 | write_glyphs (nbody + nsp + begmatch, nlen - tem); | 1826 | write_glyphs (nbody + nsp + begmatch, nlen - tem); |
| 1827 | 1827 | ||
| @@ -1835,7 +1835,7 @@ update_line (frame, vpos) | |||
| 1835 | it will lose one way or another (depending on AutoWrap) | 1835 | it will lose one way or another (depending on AutoWrap) |
| 1836 | to clear to end of line after outputting all the text. | 1836 | to clear to end of line after outputting all the text. |
| 1837 | So pause with one character to go and clear the line then. */ | 1837 | So pause with one character to go and clear the line then. */ |
| 1838 | if (nlen == FRAME_WIDTH (frame) && fast_clear_end_of_line && olen > nlen) | 1838 | if (nlen == FRAME_WINDOW_WIDTH (frame) && fast_clear_end_of_line && olen > nlen) |
| 1839 | { | 1839 | { |
| 1840 | /* endmatch must be zero, and tem must equal nsp + begmatch */ | 1840 | /* endmatch must be zero, and tem must equal nsp + begmatch */ |
| 1841 | write_glyphs (nbody + tem, nlen - tem - 1); | 1841 | write_glyphs (nbody + tem, nlen - tem - 1); |
| @@ -2173,8 +2173,8 @@ change_frame_size_1 (frame, newheight, newwidth, pretend, delay) | |||
| 2173 | FRAME_HEIGHT (frame) = newheight; | 2173 | FRAME_HEIGHT (frame) = newheight; |
| 2174 | SET_FRAME_WIDTH (frame, newwidth); | 2174 | SET_FRAME_WIDTH (frame, newwidth); |
| 2175 | 2175 | ||
| 2176 | if (FRAME_CURSOR_X (frame) >= FRAME_WIDTH (frame)) | 2176 | if (FRAME_CURSOR_X (frame) >= FRAME_WINDOW_WIDTH (frame)) |
| 2177 | FRAME_CURSOR_X (frame) = FRAME_WIDTH (frame) - 1; | 2177 | FRAME_CURSOR_X (frame) = FRAME_WINDOW_WIDTH (frame) - 1; |
| 2178 | if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) | 2178 | if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) |
| 2179 | FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; | 2179 | FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; |
| 2180 | 2180 | ||