diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-05-30 10:34:51 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-05-30 10:34:51 -0400 |
| commit | d3c7fbe880db0cb259da29a886191038eb210d92 (patch) | |
| tree | 7f7e4ba3bd93421cd1dba7321f1591c1d35a667a /src/splash-plugins/spinfinity | |
| parent | 4ea6b9c8b705be54094a49d40803b992f0df38b0 (diff) | |
| download | plymouth-d3c7fbe880db0cb259da29a886191038eb210d92.tar.gz plymouth-d3c7fbe880db0cb259da29a886191038eb210d92.tar.xz plymouth-d3c7fbe880db0cb259da29a886191038eb210d92.zip | |
Change splash plugins to honor configured background color
Previously, they were still using blue.
Diffstat (limited to 'src/splash-plugins/spinfinity')
| -rw-r--r-- | src/splash-plugins/spinfinity/plugin.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/splash-plugins/spinfinity/plugin.c b/src/splash-plugins/spinfinity/plugin.c index 574b9b5..aab9ebd 100644 --- a/src/splash-plugins/spinfinity/plugin.c +++ b/src/splash-plugins/spinfinity/plugin.c @@ -161,8 +161,8 @@ draw_logo (ply_boot_splash_plugin_t *plugin) logo_area.height = height; ply_frame_buffer_pause_updates (plugin->frame_buffer); - ply_frame_buffer_fill_with_color (plugin->frame_buffer, &logo_area, - 0.0, 0.43, .71, 1.0); + ply_frame_buffer_fill_with_hex_color (plugin->frame_buffer, &logo_area, + PLYMOUTH_BACKGROUND_COLOR); ply_frame_buffer_fill_with_argb32_data (plugin->frame_buffer, &logo_area, 0, 0, logo_data); @@ -178,8 +178,8 @@ start_animation (ply_boot_splash_plugin_t *plugin) assert (plugin != NULL); assert (plugin->loop != NULL); - ply_frame_buffer_fill_with_color (plugin->frame_buffer, NULL, - 0.0, 0.43, .71, 1.0); + ply_frame_buffer_fill_with_hex_color (plugin->frame_buffer, NULL, + PLYMOUTH_BACKGROUND_COLOR); draw_logo (plugin); @@ -206,12 +206,13 @@ stop_animation (ply_boot_splash_plugin_t *plugin) for (i = 0; i < 10; i++) { - ply_frame_buffer_fill_with_color (plugin->frame_buffer, NULL, - 0.0, 0.43, .71, .1 + .1 * i); + ply_frame_buffer_fill_with_hex_color_at_opacity (plugin->frame_buffer, NULL, + PLYMOUTH_BACKGROUND_COLOR, + .1 + .1 * i); } - ply_frame_buffer_fill_with_color (plugin->frame_buffer, NULL, - 0.0, 0.43, .71, 1.0); + ply_frame_buffer_fill_with_hex_color (plugin->frame_buffer, NULL, + PLYMOUTH_BACKGROUND_COLOR); for (i = 0; i < 20; i++) { |
