aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-23 08:56:28 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-23 08:56:28 +0100
commit6d62ddcf9d95c5ddcbe1da14630cc69b44076f3c (patch)
treee2260ff2c67e81bd36dddf01b40472254596af1f /fb-gui.c
parentd4aad4f7b58e51fb8573c84c9e47718a209b7896 (diff)
downloadfbida-6d62ddcf9d95c5ddcbe1da14630cc69b44076f3c.tar.gz
drop dead code
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/fb-gui.c b/fb-gui.c
index 9997732..37634d0 100644
--- a/fb-gui.c
+++ b/fb-gui.c
@@ -21,8 +21,6 @@ static int xs = 10;
/* ---------------------------------------------------------------------- */
/* shadow framebuffer -- internals */
-static int32_t s_lut_transp[256], s_lut_red[256], s_lut_green[256], s_lut_blue[256];
-
static unsigned char **shadow;
static unsigned int swidth,sheight;
@@ -32,26 +30,6 @@ static pixman_image_t *pixman;
static unsigned char *framebuffer;
static cairo_font_extents_t extents;
-static void shadow_lut_init_one(int32_t *lut, int bits, int shift)
-{
- int i;
-
- if (bits > 8)
- for (i = 0; i < 256; i++)
- lut[i] = (i << (bits + shift - 8));
- else
- for (i = 0; i < 256; i++)
- lut[i] = (i >> (8 - bits)) << shift;
-}
-
-static void shadow_lut_init(gfxstate *gfx)
-{
- shadow_lut_init_one(s_lut_transp, gfx->tlen, gfx->toff);
- shadow_lut_init_one(s_lut_red, gfx->rlen, gfx->roff);
- shadow_lut_init_one(s_lut_green, gfx->glen, gfx->goff);
- shadow_lut_init_one(s_lut_blue, gfx->blen, gfx->boff);
-}
-
/* ---------------------------------------------------------------------- */
/* shadow framebuffer -- management interface */
@@ -107,20 +85,6 @@ void shadow_init(gfxstate *gfx)
pixman = pixman_image_create_bits(PIXMAN_x8r8g8b8, swidth, sheight,
(void*)framebuffer, swidth * 4);
shadow_clear();
-
- /* init rendering */
- switch (gfx->bits_per_pixel) {
- case 15:
- case 16:
- case 24:
- case 32:
- shadow_lut_init(gfx);
- break;
- default:
- fprintf(stderr, "Oops: %i bit/pixel ???\n",
- gfx->bits_per_pixel);
- exit(1);
- }
}
void shadow_fini(void)