diff -Nru usplash-0.5.31/debian/changelog usplash-0.5.31ubuntu1/debian/changelog --- usplash-0.5.31/debian/changelog 2009-03-09 23:13:16.000000000 +0100 +++ usplash-0.5.31ubuntu1/debian/changelog 2009-07-19 13:04:18.000000000 +0200 @@ -1,3 +1,9 @@ +usplash (0.5.31ubuntu1) jaunty; urgency=low + + *usplash_svga.c: Added missing 16-bit special case for usplash_svga_clear() + + -- Luca Béla Palkovics Sun, 19 Jul 2009 13:01:47 +0200 + usplash (0.5.31) jaunty; urgency=low * {lib,}usplash.c: do not clear text area before doing input prompting. diff -Nru usplash-0.5.31/usplash_svga.c usplash-0.5.31ubuntu1/usplash_svga.c --- usplash-0.5.31/usplash_svga.c 2009-02-10 20:26:53.000000000 +0100 +++ usplash-0.5.31ubuntu1/usplash_svga.c 2009-07-19 12:06:08.000000000 +0200 @@ -178,7 +178,18 @@ void usplash_svga_clear(int x1, int y1, int x2, int y2, int colour) { - gl_fillbox(x1, y1, x2 - x1, y2 - y1, colour); + //BUG FIXED BY Luca Béla Palkovics + //Original: gl_fillbox(x1, y1, x2 - x1, y2 - y1, colour); + uint16_t value; + if (bpp == 8) + value=colour; + else + { //16 BIT MODE => GET COLOR FROM PALETTE !! + value = vesa_palette[pixmap->data[i]].blue >> 3; + value |=(vesa_palette[pixmap->data[i]].green >> 2) << 5; + value |=(vesa_palette[pixmap->data[i]].red >> 3) << 11; + } + gl_fillbox(x1,y1,x2-x1,y2-y1,value) } void usplash_svga_move(int sx, int sy, int dx, int dy, int w, int h)