[meld] linkmap: Adjust bezier control points for a smoother appearance



commit 84be0c04cedf0c620428ea7ba00d3ac7644f0d65
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Oct 8 08:21:20 2016 +1000

    linkmap: Adjust bezier control points for a smoother appearance

 meld/linkmap.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/linkmap.py b/meld/linkmap.py
index 895d455..f7f7e63 100644
--- a/meld/linkmap.py
+++ b/meld/linkmap.py
@@ -74,7 +74,7 @@ class LinkMap(Gtk.DrawingArea):
 
         wtotal = allocation.width
         # For bezier control points
-        x_steps = [-0.5, (1. / 3) * wtotal, (2. / 3) * wtotal, wtotal + 0.5]
+        x_steps = [-0.5, wtotal / 2, wtotal / 2, wtotal + 0.5]
         q_rad = math.pi / 2
 
         left, right = self.view_indices


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]