More flexibility for fbsplash

Mattias Schlenker ms at mattiasschlenker.de
Sat Oct 1 11:26:53 UTC 2016


Hi everyone,

I maintain a few (commercial) live distributions and have to fulfil the 
need of a few customers for a nice graphical boot splash. Unfortunately 
busybox' fbsplash was too unflexible, so I added a bit more configurability:

  * Specify a background color which is used to flood the whole screen
    before drawing the image and the progress bar
  * Specify an x and y offset of the ppm image
  * Specify an x or y offset larger than the respective screen size to
    move the image to the right or bottom edge of the screen (or bottom
    right corner)

The attached patch just re-uses functions already in fbsplash.c and 
introduces five more config options, this should result in the same size 
of the busybox binary. Even if these config options are not set, the 
screen is blanked all black before painting the splash, which might be 
desired in most cases (and usually is done by using fullscreen images).

With the patch I am able to calculate the position of logo and progress 
bar by a script before invoking fbsplash and do not have to add a splash 
for each and every screen resolution. Initially I was thinking about 
adding more options: color of progess bar and the posibility to specify 
a gradient, but this might have enlarged the binary which is not desirable.

If you find the patch useful it would be nice you added it.

Yours,
Mattias

-- 
Mattias Schlenker - Redaktion + EDV-Beratung + Linux-CD/DVD-Konzepte
August-Bebel-Str. 74 - 04275 LEIPZIG - GERMANY

Telefon (VoIP "ueberall"), geschaeftlich: +49 341 39290767
Telefon (Festnetz), privat und Fax:       +49 341 30393578
Mobil:                                    +49 163  6953657

Bitte fuer geschaeftliche Telefonate vorzugsweise die VoIP-Telefonnummer
+49 341 39290767 verwenden, da ich diese aufs Mobiltelefon routen kann!

http://blog.rootserverexperiment.de/ http://news.mattiasschlenker.de/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20161001/d30d97d6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.25.0-fbset.patch
Type: text/x-patch
Size: 4292 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20161001/d30d97d6/attachment.bin>


More information about the busybox mailing list