From: Brett Gordon Date: Sun, 1 Nov 2015 13:42:52 +0000 (-0500) Subject: coco3: vt: simplify looping syntax. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2f00dd4fbbcaa53e223a01c57ec378ad3dda11c0;p=FUZIX.git coco3: vt: simplify looping syntax. --- diff --git a/Kernel/platform-coco3/video.c b/Kernel/platform-coco3/video.c index d56df7b9..58c49fce 100644 --- a/Kernel/platform-coco3/video.c +++ b/Kernel/platform-coco3/video.c @@ -65,7 +65,7 @@ void clear_lines(int8_t y, int8_t ct) map_for_video(); uint16_t *s = (uint16_t *)char_addr(y, 0); uint16_t w = ' ' * 0x100 + curpty->attr; - for( ; wc ; wc-- ) + while( wc-- ) *s++=w; map_for_kernel(); } @@ -75,7 +75,7 @@ void clear_across(int8_t y, int8_t x, int16_t l) map_for_video(); uint16_t *s = (uint16_t *)char_addr(y, x); uint16_t w=' ' * 0x100 + curpty->attr; - for( ; l ; l-- ) + while( l-- ) *s++=w; map_for_kernel(); }