From 9cf8126603954091c64c23dcdae15846708c3c4f Mon Sep 17 00:00:00 2001 From: Jiiniasu Date: Wed, 10 Aug 2016 10:35:38 +0200 Subject: [PATCH] Fix 1px gap in middle of certain notes --- VocaluxeLib/Menu/SingNotes/CNoteBars.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VocaluxeLib/Menu/SingNotes/CNoteBars.cs b/VocaluxeLib/Menu/SingNotes/CNoteBars.cs index efced613..fd086d04 100644 --- a/VocaluxeLib/Menu/SingNotes/CNoteBars.cs +++ b/VocaluxeLib/Menu/SingNotes/CNoteBars.cs @@ -247,7 +247,7 @@ namespace VocaluxeLib.Menu.SingNotes var middleRect = new SRectF(noteRect.X + endsW, noteRect.Y, noteRect.W - 2 * endsW, noteRect.H, noteRect.Z); - float midW = noteRect.H * noteMiddle.OrigAspect; + float midW = (float)Math.Round(noteRect.H * noteMiddle.OrigAspect); int midCount = (int)Math.Floor(middleRect.W / midW);