From 0087cc646452d5df8d716eff1ae0b1938f2485ef Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 16 Jun 2008 13:55:41 -0400 Subject: Use proper gradient color stops for spinfinity --- src/libplybootsplash/Makefile.am | 4 +++- src/libplybootsplash/ply-throbber.c | 5 +++-- src/splash-plugins/spinfinity/Makefile.am | 4 +++- src/splash-plugins/spinfinity/plugin.c | 5 +++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/libplybootsplash/Makefile.am b/src/libplybootsplash/Makefile.am index b2f4a3d..71c3874 100644 --- a/src/libplybootsplash/Makefile.am +++ b/src/libplybootsplash/Makefile.am @@ -8,7 +8,9 @@ libplybootsplashdir = $(includedir)/plymouth-1/plybootsplash libplybootsplash_HEADERS = ply-answer.h ply-throbber.h ply-window.h ply-boot-splash-plugin.h libplybootsplash_la_CFLAGS = $(PLYMOUTH_CFLAGS) \ - -DPLYMOUTH_BACKGROUND_COLOR=$(background_color) + -DPLYMOUTH_BACKGROUND_COLOR=$(background_color) \ + -DPLYMOUTH_BACKGROUND_END_COLOR=$(background_end_color) \ + -DPLYMOUTH_BACKGROUND_START_COLOR=$(background_start_color) libplybootsplash_la_LIBADD = $(PLYMOUTH_LIBS) ../libply/libply.la libplybootsplash_la_LDFLAGS = -export-symbols-regex '^[^_].*' \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ diff --git a/src/libplybootsplash/ply-throbber.c b/src/libplybootsplash/ply-throbber.c index 2b3ebba..2349864 100644 --- a/src/libplybootsplash/ply-throbber.c +++ b/src/libplybootsplash/ply-throbber.c @@ -141,8 +141,9 @@ animate_at_time (ply_throbber_t *throbber, ply_frame_buffer_pause_updates (throbber->frame_buffer); if (throbber->frame_area.width > 0) - ply_frame_buffer_fill_with_hex_color (throbber->frame_buffer, &throbber->frame_area, - PLYMOUTH_BACKGROUND_COLOR); + ply_frame_buffer_fill_with_gradient (throbber->frame_buffer, &throbber->frame_area, + PLYMOUTH_BACKGROUND_START_COLOR, + PLYMOUTH_BACKGROUND_END_COLOR); frames = (ply_image_t * const *) ply_array_get_elements (throbber->frames); diff --git a/src/splash-plugins/spinfinity/Makefile.am b/src/splash-plugins/spinfinity/Makefile.am index 485b19f..31fd196 100644 --- a/src/splash-plugins/spinfinity/Makefile.am +++ b/src/splash-plugins/spinfinity/Makefile.am @@ -11,7 +11,9 @@ plugin_LTLIBRARIES = spinfinity.la spinfinity_la_CFLAGS = $(PLYMOUTH_CFLAGS) \ -DPLYMOUTH_IMAGE_DIR=\"$(datadir)/plymouth/\" \ -DPLYMOUTH_LOGO_FILE=\"$(logofile)\" \ - -DPLYMOUTH_BACKGROUND_COLOR=$(background_color) + -DPLYMOUTH_BACKGROUND_COLOR=$(background_color) \ + -DPLYMOUTH_BACKGROUND_END_COLOR=$(background_end_color) \ + -DPLYMOUTH_BACKGROUND_START_COLOR=$(background_start_color) spinfinity_la_LDFLAGS = -module -avoid-version -export-dynamic spinfinity_la_LIBADD = $(PLYMOUTH_LIBS) \ diff --git a/src/splash-plugins/spinfinity/plugin.c b/src/splash-plugins/spinfinity/plugin.c index 8c8247c..ec30a38 100644 --- a/src/splash-plugins/spinfinity/plugin.c +++ b/src/splash-plugins/spinfinity/plugin.c @@ -148,8 +148,9 @@ static void draw_background (ply_boot_splash_plugin_t *plugin, ply_frame_buffer_area_t *area) { - ply_frame_buffer_fill_with_hex_color (plugin->frame_buffer, area, - PLYMOUTH_BACKGROUND_COLOR); + ply_frame_buffer_fill_with_gradient (plugin->frame_buffer, area, + PLYMOUTH_BACKGROUND_START_COLOR, + PLYMOUTH_BACKGROUND_END_COLOR); } static void -- cgit