]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lookup.cc
Merge branch 'master' into translation
[lilypond.git] / lily / lookup.cc
index 54902e4d1daf81a75b7ec65da2cfe1ca3e14317a..4f9d0bbbdefaa78d1766c4fea4345dbe8d80964b 100644 (file)
@@ -88,11 +88,8 @@ Stencil
 Lookup::rotated_box (Real slope, Real width, Real thick, Real blot)
 {
   vector<Offset> pts;
-  Offset rot (1, slope);
+  Offset rot = Offset (1, slope).direction ();
 
-  thick -= 2 * blot;
-  width -= 2 * blot;
-  rot /= sqrt (1 + slope * slope);
   pts.push_back (Offset (0, -thick / 2) * rot);
   pts.push_back (Offset (width, -thick / 2) * rot);
   pts.push_back (Offset (width, thick / 2) * rot);