summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2003-12-01 21:07:23 +0000
committerCarl Worth <cworth@cworth.org>2003-12-01 21:07:23 +0000
commitd6256fa6de86b5cdd8c10857cd054a6508bf56aa (patch)
treecdd4a385fd28d9df342d3f7f83a5740e79d9adb7
parent202d8265fb4b648d6fd395e30e8119e85ae0ca7a (diff)
Draw shadow before hand so that it appears under the hand at least
somewhat. Still requires a black hand to look decent.
-rw-r--r--ChangeLog6
-rw-r--r--fdclock.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..31b5856
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,6 @@
+2003-12-01 Carl Worth <cworth@isi.edu>
+
+ * fdclock.c (draw_hand): Draw shadow before hand so that it
+ appears "under" the hand at least somewhat. Still requires a black
+ hand to look decent.
+
diff --git a/fdclock.c b/fdclock.c
index 3e1dc7a..504c37d 100644
--- a/fdclock.c
+++ b/fdclock.c
@@ -229,19 +229,19 @@ draw_hand (cairo_t *cr, double angle, double width, double length, double alt)
{
cairo_save (cr);
{
+ cairo_translate (cr, alt, alt);
cairo_rotate (cr, angle);
- cairo_set_rgb_color (cr, 0, 0, 0);
draw_hand_helper (cr, width, length);
+ cairo_set_rgb_color (cr, 0, 0, 0);
+ cairo_set_alpha (cr, 0.5);
cairo_fill (cr);
}
cairo_restore (cr);
cairo_save (cr);
{
- cairo_translate (cr, alt, alt);
cairo_rotate (cr, angle);
- draw_hand_helper (cr, width, length);
cairo_set_rgb_color (cr, 0, 0, 0);
- cairo_set_alpha (cr, 0.5);
+ draw_hand_helper (cr, width, length);
cairo_fill (cr);
}
cairo_restore (cr);