=== modified file 'apps/plugins/lib/xlcd_scroll.c' --- apps/plugins/lib/xlcd_scroll.c 2009-01-16 10:34:40 +0000 +++ apps/plugins/lib/xlcd_scroll.c 2009-06-14 00:35:29 +0000 @@ -40,7 +40,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } #if LCD_DEPTH == 2 blockcount = count >> 2; @@ -95,7 +98,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } #if LCD_DEPTH == 2 blockcount = count >> 2; @@ -152,7 +158,10 @@ int length, oldmode; if ((unsigned)count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } data = rb->lcd_framebuffer; data_end = data + LCD_WIDTH*LCD_FBHEIGHT; @@ -178,7 +187,10 @@ int length, oldmode; if ((unsigned)count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } data = rb->lcd_framebuffer; data_end = data + LCD_WIDTH*LCD_FBHEIGHT; @@ -207,7 +219,10 @@ int length, oldmode; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -227,7 +242,10 @@ int length, oldmode; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -251,7 +269,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } #if (LCD_DEPTH == 1) \ || (LCD_DEPTH == 2) && (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) @@ -445,7 +466,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } #if (LCD_DEPTH == 1) \ || (LCD_DEPTH == 2) && (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED)