=== modified file 'apps/plugins/lib/grey_scroll.c' --- apps/plugins/lib/grey_scroll.c 2009-01-16 10:34:40 +0000 +++ apps/plugins/lib/grey_scroll.c 2009-10-16 19:42:02 +0000 @@ -37,7 +37,10 @@ int length, blank; if ((unsigned)count >= (unsigned)_grey_info.width) + { + grey_clear_display(); return; + } data = _grey_info.buffer; data_end = data + _GREY_MULUQ(_grey_info.width, _grey_info.height); @@ -62,7 +65,10 @@ int length, blank; if ((unsigned)count >= (unsigned)_grey_info.width) + { + grey_clear_display(); return; + } data = _grey_info.buffer; data_end = data + _GREY_MULUQ(_grey_info.width, _grey_info.height); @@ -86,7 +92,10 @@ int blank; if ((unsigned)count >= (unsigned)_grey_info.height) + { + grey_clear_display(); return; + } shift = _GREY_MULUQ(_grey_info.width, count); length = _GREY_MULUQ(_grey_info.width, _grey_info.height - count); @@ -105,7 +114,10 @@ int blank; if ((unsigned)count >= (unsigned)_grey_info.height) + { + grey_clear_display(); return; + } shift = _GREY_MULUQ(_grey_info.width, count); length = _GREY_MULUQ(_grey_info.width, _grey_info.height - count); @@ -126,7 +138,10 @@ int blank, length; if ((unsigned)count >= (unsigned)_grey_info.width) + { + grey_ub_clear_display(); return; + } data = _grey_info.values; data_end = data + _GREY_MULUQ(_grey_info.width, _grey_info.height); @@ -156,7 +171,10 @@ int blank, length; if ((unsigned)count >= (unsigned)_grey_info.width) + { + grey_ub_clear_display(); return; + } data = _grey_info.values; data_end = data + _GREY_MULUQ(_grey_info.width, _grey_info.height); @@ -185,7 +203,10 @@ int blank; if ((unsigned)count >= (unsigned)_grey_info.height) + { + grey_ub_clear_display(); return; + } dst = _grey_info.values; end = dst + _GREY_MULUQ(_grey_info.height, _grey_info.width); @@ -257,7 +278,10 @@ int blank; if ((unsigned)count >= (unsigned)_grey_info.height) + { + grey_ub_clear_display(); return; + } start = _grey_info.values; dst = start + _GREY_MULUQ(_grey_info.height, _grey_info.width); === modified file 'apps/plugins/lib/xlcd_scroll.c' --- apps/plugins/lib/xlcd_scroll.c 2009-10-08 02:56:37 +0000 +++ apps/plugins/lib/xlcd_scroll.c 2009-10-16 19:40:01 +0000 @@ -37,7 +37,10 @@ int length, oldmode; if ((unsigned)count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } length = (LCD_WIDTH-count)*LCD_FBHEIGHT; @@ -56,7 +59,10 @@ int length, oldmode; if ((unsigned)count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } length = (LCD_WIDTH-count)*LCD_FBHEIGHT; @@ -77,7 +83,10 @@ fb_data *data; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -103,7 +112,10 @@ fb_data *data; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -131,7 +143,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } #if LCD_DEPTH == 2 blockcount = count >> 2; @@ -186,7 +201,10 @@ int blockcount, blocklen; if ((unsigned) count >= LCD_WIDTH) + { + rb->lcd_clear_display(); return; + } #if LCD_DEPTH == 2 blockcount = count >> 2; @@ -243,7 +261,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; @@ -269,7 +290,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; @@ -298,7 +322,10 @@ int length, oldmode; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -318,7 +345,10 @@ int length, oldmode; if ((unsigned)count >= LCD_HEIGHT) + { + rb->lcd_clear_display(); return; + } length = LCD_HEIGHT - count; @@ -342,7 +372,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) @@ -536,7 +569,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)