From: Ray Strode Date: Mon, 16 Jun 2008 17:55:41 +0000 (-0400) Subject: Use proper gradient color stops for spinfinity X-Git-Tag: 0.3.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0087cc646452d5df8d716eff1ae0b1938f2485ef;p=thirdparty%2Fplymouth.git Use proper gradient color stops for spinfinity --- diff --git a/src/libplybootsplash/Makefile.am b/src/libplybootsplash/Makefile.am index b2f4a3d2..71c3874a 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 2b3ebbad..23498648 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 485b19f2..31fd1962 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 8c8247c7..ec30a381 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