~ubuntu-branches/ubuntu/oneiric/denemo/oneiric

« back to all changes in this revision

Viewing changes to src/slurs.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-10-27 08:00:18 UTC
  • mfrom: (1.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20101027080018-tuekd0869v8ptnqv
Tags: upstream-0.8.16
ImportĀ upstreamĀ versionĀ 0.8.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
}
42
42
 
43
43
void
44
 
draw_slur (GdkPixmap * pixmap, GdkGC * gc, GSList ** slur_stack,
 
44
draw_slur (cairo_t * cr, GSList ** slur_stack,
45
45
           gint x2, gint y)
46
46
{
47
47
  gint x1 = top_slur_stack (*slur_stack);
48
48
  if (x1 != -1)
49
49
    {
50
50
      *slur_stack = pop_slur_stack (*slur_stack);
51
 
      gdk_draw_arc (pixmap, gc, FALSE, x1, y - 15, x2 - x1, 8, 0, 64 * 180);
 
51
 
 
52
      cairo_set_line_width( cr, 1.0 );
 
53
      cairo_move_to( cr, x1, y - 15 );
 
54
      cairo_rel_curve_to( cr, (x2-x1)/3, -8, (x2-x1)*2/3, -8, (x2-x1), 0 );
 
55
      cairo_stroke( cr );
52
56
    }
53
57
}