From a754504a57decf61bbfb51d8bed158042fba514c Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 12 Aug 2015 21:23:37 +0200 Subject: [PATCH] Remove Lookup::rotated_box's bug compensation of Lookup::round_filled_polygon --- lily/lookup.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lily/lookup.cc b/lily/lookup.cc index 54902e4d1d..4f9d0bbbde 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -88,11 +88,8 @@ Stencil Lookup::rotated_box (Real slope, Real width, Real thick, Real blot) { vector 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); -- 2.39.5