aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-24 08:22:11 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-24 08:22:11 +0100
commit50b6d744c9d1c0afc46b9ac34fce765f05020900 (patch)
treeed3cbe4ef1174ed0f436d0bf6dc1f9262a799e49
parent6c153dc8de71f204cd03deaf4fb1bdbe2d3aa6a9 (diff)
downloadfbida-50b6d744c9d1c0afc46b9ac34fce765f05020900.tar.gz
zap fb_clear_screen
-rw-r--r--fb-gui.c9
-rw-r--r--fb-gui.h2
-rw-r--r--fbi.c1
-rw-r--r--fbtools.c2
-rw-r--r--fbtools.h1
5 files changed, 1 insertions, 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);