fbsplash: support 8bit mode
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 17 Oct 2011 03:31:52 +0000 (05:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Oct 2011 03:31:52 +0000 (05:31 +0200)
commitcd06e06eee3ef89e45b60d7122e5518995c7f65e
tree27856d2e966353f4d332dcb609f81d348eb1415c
parente4fa7b7965fd574cff2a6a9b877522d613804a38
fbsplash: support 8bit mode

Fake truecolor support using a RGB:332 palette.

function                                             old     new   delta
fb_setpal                                              -     172    +172
fbsplash_main                                        920     953     +33
fb_pixel_value                                        50      80     +30
fb_write_pixel                                        47      51      +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 239/0)             Total: 239 bytes

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/fbsplash.c