X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fblanker.c;h=0e96c787a9f67d3b69e522c37ebc4821b0576d6c;hb=4278d44ef7681c56f4bd16615c3c4d9338112df4;hp=5f9cd4bf2363f0e77aa06e39dfab24f080433386;hpb=18f93b67df079a518b94b7de354ad0d43567a64b;p=bertos.git diff --git a/bertos/mware/blanker.c b/bertos/mware/blanker.c index 5f9cd4bf..0e96c787 100644 --- a/bertos/mware/blanker.c +++ b/bertos/mware/blanker.c @@ -27,14 +27,13 @@ * the GNU General Public License. * * Copyright 2006 Develer S.r.l. (http://www.develer.com/) - * Copyright 2001 Bernardo Innocenti + * Copyright 2001 Bernie Innocenti * --> * * \brief Display Blanker (implementation). * - * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti */ #include "blanker.h" @@ -95,25 +94,25 @@ void blk_retrigger(void) */ static void blk_hack(void) { - static signed char blk_colstart[LCD_COLS]; + static signed char blk_colstart[CONFIG_LCD_COLS]; UBYTE row, col; if (rand()%3 == 0) { /* Modify one column */ - col = rand() % LCD_COLS; + col = rand() % CONFIG_LCD_COLS; blk_colstart[col] += rand() % 12 - 5; } - for (col = 0; col < LCD_COLS; ++col) + for (col = 0; col < CONFIG_LCD_COLS; ++col) { if (blk_colstart[col] > 0) { --blk_colstart[col]; /* Scroll down */ - for(row = LCD_ROWS-1; row; --row) + for(row = CONFIG_LCD_ROWS-1; row; --row) { lcd_SetAddr(blk_layer, LCD_POS(col,row)); lcd_PutChar(blk_layer->Buf[LCD_POS(col,row-1)], blk_layer); @@ -128,7 +127,7 @@ static void blk_hack(void) ++blk_colstart[col]; /* Clear tail */ - for(row = 0; row < LCD_ROWS; ++row) + for(row = 0; row < CONFIG_LCD_ROWS; ++row) { if (blk_layer->Buf[LCD_POS(col,row)] != ' ') {