Fix: Positioning of Notelines
Notelines rect was top adjusted to a calculated center position making the lines slightly offset downwards.
This commit is contained in:
1 parent
e095cc090b
commit
25d98d5134
1 file changed
+1
-1
@@ -194,7 +194,7 @@ namespace VocaluxeLib.Menu.SingNotes
|
|||||||
lineRect.H = 1.5f;
|
lineRect.H = 1.5f;
|
||||||
for (int i = 0; i < CBase.Settings.GetNumNoteLines(); i++)
|
for (int i = 0; i < CBase.Settings.GetNumNoteLines(); i++)
|
||||||
{
|
{
|
||||||
lineRect.Y = Rect.Y + Rect.H / CBase.Settings.GetNumNoteLines() * (i + 1);
|
lineRect.Y = (Rect.Y + Rect.H / CBase.Settings.GetNumNoteLines() * (i + 1)) - (lineRect.H / 2);
|
||||||
CBase.Drawing.DrawRect(color, lineRect);
|
CBase.Drawing.DrawRect(color, lineRect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user