]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Use proper gradient color stops for spinfinity
authorRay Strode <rstrode@redhat.com>
Mon, 16 Jun 2008 17:55:41 +0000 (13:55 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 16 Jun 2008 19:02:59 +0000 (15:02 -0400)
src/libplybootsplash/Makefile.am
src/libplybootsplash/ply-throbber.c
src/splash-plugins/spinfinity/Makefile.am
src/splash-plugins/spinfinity/plugin.c

index b2f4a3d2e7f39de8577e7c7063f2c47ef2776c6a..71c3874abf8df9bf5e2bbe3f43b8b96faabf2db4 100644 (file)
@@ -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) \
index 2b3ebbad7e7489a2a641b5fc80e090b721481025..23498648fea8d17255f7b1cf38f96df325fdbd00 100644 (file)
@@ -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);
 
index 485b19f2b85337170ae512bf69b81c52f5fe8da7..31fd196217d9f81952f0132cbeee9033adcfedba 100644 (file)
@@ -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)                                      \
index 8c8247c7c198e84c7272378f858c9b0d957e6f40..ec30a3818fbe1bb2bc5de46d33be920153e75a77 100644 (file)
@@ -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