From 50b6d744c9d1c0afc46b9ac34fce765f05020900 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 24 Mar 2016 08:22:11 +0100 Subject: zap fb_clear_screen --- fb-gui.c | 9 --------- fb-gui.h | 2 -- fbi.c | 1 - fbtools.c | 2 +- fbtools.h | 1 - 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/fb-gui.c b/fb-gui.c index ac6e2d8..4f248ad 100644 --- a/fb-gui.c +++ b/fb-gui.c @@ -559,12 +559,3 @@ FT_Face font_open(char *fcname) /* oops, didn't work */ return NULL; } - -/* ---------------------------------------------------------------------- */ -/* clear screen (areas) */ - -void fb_clear_screen(gfxstate *gfx) -{ - if (visible) - fb_memset(gfx->mem, 0, gfx->stride * gfx->vdisplay); -} diff --git a/fb-gui.h b/fb-gui.h index 7b5d50e..f3a48f8 100644 --- a/fb-gui.h +++ b/fb-gui.h @@ -28,5 +28,3 @@ void shadow_draw_text_box(FT_Face face, int x, int y, int percent, void font_init(void); FT_Face font_open(char *fcname); - -void fb_clear_screen(gfxstate *gfx); diff --git a/fbi.c b/fbi.c index e423efa..e9054c1 100644 --- a/fbi.c +++ b/fbi.c @@ -1401,7 +1401,6 @@ static void flist_img_load(struct flist *f, int prefetch) static void cleanup_and_exit(int code) { shadow_fini(); - fb_clear_screen(gfx); tty_restore(); gfx->cleanup_display(); flist_print_tagged(stdout); diff --git a/fbtools.c b/fbtools.c index ef0e160..1518711 100644 --- a/fbtools.c +++ b/fbtools.c @@ -187,7 +187,7 @@ fb_switch_init() /* -------------------------------------------------------------------- */ /* initialisation & cleanup */ -void +static void fb_memset (void *addr, int c, size_t len) { #if 1 /* defined(__powerpc__) */ diff --git a/fbtools.h b/fbtools.h index 41cd1d7..4f14f6f 100644 --- a/fbtools.h +++ b/fbtools.h @@ -10,7 +10,6 @@ extern int fb_switch_state; /* init + cleanup */ gfxstate *fb_init(char *device, char *mode, int vt); -void fb_memset(void *addr, int c, size_t len); /* console switching */ int fb_switch_init(void); -- cgit