[libchamplain] Fix very wide shadow actors



commit 765a5110609089527cfb85d8f48514d237f5782d
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Sun Jun 14 13:17:55 2009 -0400

    Fix very wide shadow actors
    
    The shadow actor was way to large and resulted in very large reactive
    areas for markers.

 champlain/champlain-marker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index 732ea12..cb16c09 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -448,7 +448,7 @@ draw_shadow (ChamplainMarker *marker,
   else
     x = -58 * slope;
 
-  shadow = clutter_cairo_new (width * 1.5, (height + point));
+  shadow = clutter_cairo_new (width + x, (height + point));
   cr = clutter_cairo_create (CLUTTER_CAIRO (shadow));
 
   cairo_matrix_init (&matrix,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]