Fix DrawColorReflection (thx Darkice)

This commit is contained in:
Florian Kuepper committed 2012-07-27 17:44:22 +02:00
1 parent df8f2c10d2
commit c40f07c2a1
1 file changed
+5
+5
View File
@@ -663,6 +663,10 @@ namespace Vocaluxe.Lib.Draw
public void DrawColorReflection(SColorF color, SRectF rect, float space, float height)
{
if (rect.H < height)
height = rect.H;
float rx1 = rect.X;
float rx2 = rect.X + rect.W;
float ry1 = rect.Y + rect.H + space;
@@ -680,6 +684,7 @@ namespace Vocaluxe.Lib.Draw
if (ry2 > rect.Y + rect.H + space + height)
ry2 = rect.Y + rect.H + space + height;
GL.Enable(EnableCap.Blend);
if (rect.Rotation != 0f)