diff --git a/Vocaluxe/Base/CDraw.cs b/Vocaluxe/Base/CDraw.cs
index ffc01f0d..aaba1a2f 100644
--- a/Vocaluxe/Base/CDraw.cs
+++ b/Vocaluxe/Base/CDraw.cs
@@ -19,7 +19,6 @@
using System;
using System.Drawing;
-using System.Windows.Forms;
using Vocaluxe.Lib.Draw;
using VocaluxeLib.Menu;
@@ -205,7 +204,7 @@ namespace Vocaluxe.Base
CHelper.SetRect(bounds, out rect, rect.Width / rect.Height, aspect);
DrawTexture(texture, new SRectF(rect.X, rect.Y, rect.Width, rect.Height, staticBounds.Rect.Z),
- texture.Color, new SRectF(bounds.X, bounds.Y, bounds.Width, bounds.Height, 0f), false);
+ texture.Color, new SRectF(bounds.X, bounds.Y, bounds.Width, bounds.Height, 0f));
}
public static void DrawTextureReflection(STexture texture, SRectF rect, SColorF color, SRectF bounds, float space, float height)
diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs
index 106fe191..814ff8c3 100644
--- a/Vocaluxe/Lib/Draw/CDirect3D.cs
+++ b/Vocaluxe/Lib/Draw/CDirect3D.cs
@@ -758,8 +758,14 @@ namespace Vocaluxe.Lib.Draw
/// The end y-value
public void DrawLine(int a, int r, int g, int b, int w, int x1, int y1, int x2, int y2)
{
- SColorF color = new SColorF((float)a / 255, (float)g / 255, (float)b / 255, (float)a / 255);
- DrawTexture(_BlankTexture, new SRectF(x1, y1, x2, y2, 1), color);
+ var lineVector = new Vector2[] {new Vector2(x1, y1), new Vector2(x2, y2)};
+ using (var line = new Line(_Device))
+ {
+ line.Antialias = true;
+ line.Begin();
+ line.Draw(lineVector, new Color4((float)a / 255, (float)r / 255, (float)g / 255, (float)b / 255));
+ line.End();
+ }
}
///