fbutil: set the range when clear the fb
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 15 Nov 2010 08:09:51 +0000 (17:09 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 15 Nov 2010 08:09:51 +0000 (17:09 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/misc/ramoops.c
drivers/video/fbutils.c
include/fbutils.h

index 8ac380b..186549b 100644 (file)
@@ -25,7 +25,7 @@ static void ramoops_show(void)
 
 #ifdef CONFIG_S5PC1XXFB
        init_font();
-       fb_clear();
+       fb_clear(0);
        set_font_color(FONT_WHITE);
        chars = get_chars();
        printf("chars %d\n", chars);
index 92277fb..f7c8c76 100644 (file)
@@ -315,12 +315,15 @@ void exit_font(void)
        g_x = g_y = 0;
 }
 
-void fb_clear(void)
+void fb_clear(int range)
 {
        int y;
        int line_length = panel_info.vl_width * 4;
 
-       for (y = 0; y < panel_info.vl_height; y++)
+       if (!range)
+               range = panel_info.vl_height;
+
+       for (y = 0; y < range; y++)
                memset(line_addr[y], 0x0, line_length);
 }
 
index bf17360..745cc2d 100644 (file)
@@ -67,7 +67,7 @@ void draw_wheel(int x, int y, unsigned char color);
 void draw_progress(int y, int per, unsigned char color);
 
 /* clear the framebuffer */
-void fb_clear(void);
+void fb_clear(int range);
 
 unsigned int get_chars(void);