summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-16 13:55:41 -0400
committerRay Strode <rstrode@redhat.com>2008-06-16 15:02:59 -0400
commit0087cc646452d5df8d716eff1ae0b1938f2485ef (patch)
tree8538734f15b4dfc24120591cdf68808583e8556c
parentbbbe3af42a52fa2eea871602c863908d879de434 (diff)
downloadplymouth-0087cc646452d5df8d716eff1ae0b1938f2485ef.tar.gz
plymouth-0087cc646452d5df8d716eff1ae0b1938f2485ef.tar.xz
plymouth-0087cc646452d5df8d716eff1ae0b1938f2485ef.zip
Use proper gradient color stops for spinfinity
-rw-r--r--src/libplybootsplash/Makefile.am4
-rw-r--r--src/libplybootsplash/ply-throbber.c5
-rw-r--r--src/splash-plugins/spinfinity/Makefile.am4
-rw-r--r--src/splash-plugins/spinfinity/plugin.c5
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