diff options
-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; } |