mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
ux: use CubicBezierTo instead of calling QuadraticBezierTo twice for curves in commit graph (#57)
This commit is contained in:
parent
0252887442
commit
099e6a4f97
1 changed files with 1 additions and 3 deletions
|
@ -216,9 +216,7 @@ namespace SourceGit.Views
|
||||||
if (i < size - 1)
|
if (i < size - 1)
|
||||||
{
|
{
|
||||||
var midY = (last.Y + cur.Y) / 2;
|
var midY = (last.Y + cur.Y) / 2;
|
||||||
var midX = (last.X + cur.X) / 2;
|
ctx.CubicBezierTo(new Point(last.X, midY + 2), new Point(cur.X, midY - 2), cur);
|
||||||
ctx.QuadraticBezierTo(new Point(last.X, midY), new Point(midX, midY));
|
|
||||||
ctx.QuadraticBezierTo(new Point(cur.X, midY), cur);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue