From: Charlie Brej Date: Thu, 30 Oct 2008 18:03:29 +0000 (-0400) Subject: Make password prompt in "Solar" plugin prettier X-Git-Tag: 0.6.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e506f15b36bc8be1ebe4e7f815636a95966d9a1;p=thirdparty%2Fplymouth.git Make password prompt in "Solar" plugin prettier Previously it used the blank spinfinity password dialog. This one matches the rest of the solar theme much better. --- diff --git a/src/plugins/splash/solar/plugin.c b/src/plugins/splash/solar/plugin.c index eebe33a2..371ea844 100644 --- a/src/plugins/splash/solar/plugin.c +++ b/src/plugins/splash/solar/plugin.c @@ -902,15 +902,41 @@ on_erase (ply_boot_splash_plugin_t *plugin, int height) { ply_frame_buffer_area_t area; + ply_frame_buffer_area_t image_area; + ply_image_t *image; area.x = x; area.y = y; area.width = width; area.height = height; - ply_frame_buffer_fill_with_gradient (plugin->frame_buffer, &area, - PLYMOUTH_BACKGROUND_START_COLOR, - PLYMOUTH_BACKGROUND_END_COLOR); + ply_frame_buffer_get_size (plugin->frame_buffer, &image_area); + image = ply_image_resize (plugin->background_image, image_area.width, image_area.height); + + ply_frame_buffer_fill_with_argb32_data_with_clip (plugin->frame_buffer, + &image_area, &area, 0, 0, + ply_image_get_data (image)); + ply_image_free (image); + + image_area.x = image_area.width-ply_image_get_width(plugin->star_image); + image_area.y = image_area.height-ply_image_get_height(plugin->star_image); + image_area.width = ply_image_get_width(plugin->star_image); + image_area.height = ply_image_get_height(plugin->star_image); + + + ply_frame_buffer_fill_with_argb32_data_with_clip (plugin->frame_buffer, + &image_area, &area, 0, 0, + ply_image_get_data (plugin->star_image)); + + image_area.x = 20; + image_area.y = 20; + image_area.width = ply_image_get_width(plugin->logo_image); + image_area.height = ply_image_get_height(plugin->logo_image); + + + ply_frame_buffer_fill_with_argb32_data_with_clip (plugin->frame_buffer, + &image_area, &area, 0, 0, + ply_image_get_data (plugin->logo_image)); } void