Gradient Framebuffer Fill Bug?
Jonathan Greig
redteam316 at gmail.com
Sat Mar 14 15:52:52 PDT 2009
On the 0.7.0 version of plymouth(pretty recent from the past day or so, not
sure how to get the exact rev)
I've been testing the gradient framebuffer filling function out some. It
doesn't work as expected. Below is a modified snipplet from the spinfinity
plugin demonstrating this. The gradient should start at 80% height and stop
at the bottom of the screen. What the actual result is a cropped area of a
fullscreen gradient.
Also, I noticed that there are some odd bars appearing near the top of the
screen that are a little glitchy. Not sure if this is due to testing the
plugin without rebooting or what.
void
on_erase (ply_boot_splash_plugin_t *plugin,
int x,
int y,
int width,
int height)
{
ply_frame_buffer_area_t area;
ply_frame_buffer_area_t gradarea;
area.x = x;
area.y = y;
area.width = width;
area.height = height;
gradarea.x = 0;
gradarea.y = height-(height/5);
gradarea.width = width;
gradarea.height = height/5;
ply_frame_buffer_fill_with_color (plugin->frame_buffer, &area,
0,255,0,255); // GREEN FILL
ply_frame_buffer_fill_with_gradient (plugin->frame_buffer, &gradarea,
0x000000, // BLACK
0xFF0000); // RED
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/plymouth/attachments/20090314/cecaf742/attachment.htm
More information about the plymouth
mailing list