<span class="gI">On the 0.7.0 version of plymouth(pretty recent from the past day or so, not sure how to get the exact rev)<br><br>I&#39;ve been testing the gradient framebuffer filling function out some. It doesn&#39;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. <br>
<br>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.<br><br><br>void<br>on_erase (ply_boot_splash_plugin_t *plugin,<br>
          int                       x,<br>          int                       y,<br>          int                       width,<br>          int                       height)<br>{<br>  ply_frame_buffer_area_t area;<br>  ply_frame_buffer_area_t gradarea;<br>
<br>  area.x = x;<br>  area.y = y;<br>  area.width = width;<br>  area.height = height;<br>  gradarea.x = 0;<br>  gradarea.y = height-(height/5);<br>  gradarea.width = width;<br>  gradarea.height = height/5;<br><br>  <br>  ply_frame_buffer_fill_with_color (plugin-&gt;frame_buffer, &amp;area,<br>
                                     0,255,0,255);     // GREEN FILL<br>  ply_frame_buffer_fill_with_gradient (plugin-&gt;frame_buffer, &amp;gradarea,<br>                                       0x000000,       // BLACK<br>
                                       0xFF0000);      // RED<br>}<br></span>