]> err.no Git - libchamplain/commitdiff
Fix very wide shadow actors
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 17:17:55 +0000 (13:17 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 14 Jun 2009 17:17:55 +0000 (13:17 -0400)
The shadow actor was way to large and resulted in very large reactive
areas for markers.

champlain/champlain-marker.c

index 732ea125bfbeed6913255df46514ba604ce4e34d..cb16c0947de0c47af4a9165834b0eb124b894408 100644 (file)
@@ -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,