From: Brett Gordon Date: Sun, 1 Nov 2015 13:40:38 +0000 (-0500) Subject: coco3: vt: bug fix: use wider counter for line clearing. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4cb0f23499ffc75dada845d9fac5b456408af9d9;p=FUZIX.git coco3: vt: bug fix: use wider counter for line clearing. --- diff --git a/Kernel/platform-coco3/video.c b/Kernel/platform-coco3/video.c index 20b88534..d56df7b9 100644 --- a/Kernel/platform-coco3/video.c +++ b/Kernel/platform-coco3/video.c @@ -61,11 +61,11 @@ void plot_char(int8_t y, int8_t x, uint16_t c) void clear_lines(int8_t y, int8_t ct) { + uint16_t wc= ct * VT_WIDTH; map_for_video(); uint16_t *s = (uint16_t *)char_addr(y, 0); - ct *= VT_WIDTH; uint16_t w = ' ' * 0x100 + curpty->attr; - for( ; ct ; ct-- ) + for( ; wc ; wc-- ) *s++=w; map_for_kernel(); }