[ubuntu-art] More usplash requirements

Dennis Kaarsemaker dennis at kaarsemaker.net
Mon Oct 16 22:02:15 BST 2006


On ma, 2006-10-16 at 15:10 -0400, Viper550 wrote:
   
> Hold it, how will we do fancy progress bars now? We can't set separate 
> progress bar images for separate color depths!

Sure you can! The fancy-progressbar-themes are responsible for drawing
the themes themselves. Something like this should work:

extern struct usplash_pixmap hi_fg, hi_bg, lo_bg, lo_fg;
struct usplash_pixmap *pb_fg, *pb_bg;

int theme_init(int xres, int yres) {
    if(xres == 400) {
	pb_fg = &lo_fg;
	pb_bg = &lo_bg
    }
    else {
        you should get the point by now
    }
}
-- 
Dennis K.

Time is an illusion, lunchtime doubly so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-art/attachments/20061016/cdb1a81f/attachment.pgp 


More information about the ubuntu-art mailing list