]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove Lookup::rotated_box's bug compensation of Lookup::round_filled_polygon
authorDavid Kastrup <dak@gnu.org>
Wed, 12 Aug 2015 19:23:37 +0000 (21:23 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 20 Aug 2015 08:35:29 +0000 (10:35 +0200)
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);