diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-06-25 15:49:11 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-06-25 15:49:11 +0000 |
commit | e9b2dbf658443c2027e5b24e53eb85aa800189ff (patch) | |
tree | d59c5fb4f5021eabf9d5e71be53368d6612d711d /console | |
parent | 8856517683eeb5bf6f213b6322e429d54fa2db76 (diff) |
2002-06-25 Marcus Brinkmann <marcus@gnu.org>
* display.c (screen_shift_left): Don't increase DST twice in one
iteration.
* display.c (screen_shift_right): Likewise.
Diffstat (limited to 'console')
-rw-r--r-- | console/ChangeLog | 4 | ||||
-rw-r--r-- | console/display.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/console/ChangeLog b/console/ChangeLog index 485ce5c0..2432860b 100644 --- a/console/ChangeLog +++ b/console/ChangeLog @@ -2,6 +2,10 @@ * Makefile (HURDLIBS): Add pager, reported by Alfred M. Szmidt. + * display.c (screen_shift_left): Don't increase DST twice in one + iteration. + * display.c (screen_shift_right): Likewise. + 2002-06-25 Marcus Brinkmann <marcus@gnu.org> * Makefile (LCLHDRS): Add priv.h and mutations.h. diff --git a/console/display.c b/console/display.c index 2b15e343..a418ca73 100644 --- a/console/display.c +++ b/console/display.c @@ -862,7 +862,7 @@ screen_shift_left (display_t display, size_t col1, size_t row1, size_t col2, user->_matrix[dst++ % size] = user->_matrix[src++ % size]; while (dst <= end) { - user->_matrix[dst++ % size].chr = chr; + user->_matrix[dst % size].chr = chr; user->_matrix[dst++ % size].attr = attr; } @@ -899,7 +899,7 @@ screen_shift_right (display_t display, size_t col1, size_t row1, size_t col2, user->_matrix[dst-- % size] = user->_matrix[src-- % size]; while (dst >= start) { - user->_matrix[dst-- % size].chr = chr; + user->_matrix[dst % size].chr = chr; user->_matrix[dst-- % size].attr = attr; } |