]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dots.cc
release: 1.0.1
[lilypond.git] / lily / dots.cc
index 44e06c0b23bc9336a0fd96eef051f910024738c2..370ea3dbe7ae46272e2fe5efe0564bf8b09a0238 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "dots.hh"
@@ -25,7 +25,7 @@ Dots::do_post_processing ()
   if (!no_dots_i_)
     {
       transparent_b_ = true;
-      set_empty(true);
+      set_empty (true);
     }
 }
 
@@ -33,20 +33,21 @@ Molecule*
 Dots::brew_molecule_p () const
 {
   Molecule *out = new Molecule;
-  Atom fill = paper()->lookup_l ()->fill (Box(Interval(0,0),Interval(0,0)));
-  out->add(fill);
+  Atom fill = lookup_l ()->fill (Box (Interval (0,0),
+                                              Interval (0,0)));
+  out->add_atom (fill);
 
-  Atom d = paper ()->lookup_l ()->dots (0);
+  Atom d = lookup_l ()->dots ();
 
-  Real dw = d.dim_[X_AXIS].length();
-  d.translate(-dw,X_AXIS);
+  Real dw = d.dim_[X_AXIS].length ();
+  d.translate_axis (-dw, X_AXIS);
   for (int i=no_dots_i_; i--; )
     {
-      d.translate(2*dw,X_AXIS);
-      out->add (d);
+      d.translate_axis (2*dw,X_AXIS);
+      out->add_atom (d);
     }
   Real inter_f = paper ()->internote_f ();
-  out->translate (inter_f * position_i_, Y_AXIS);
+  out->translate_axis (inter_f * position_i_, Y_AXIS);
   return out;
 }