From c40f07c2a1f1ae11c3834d9ed38cdc92e05cf2e7 Mon Sep 17 00:00:00 2001 From: Florian Kuepper Date: Fri, 27 Jul 2012 17:44:22 +0200 Subject: [PATCH] Fix DrawColorReflection (thx Darkice) --- Vocaluxe/Lib/Draw/COpenGL.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Vocaluxe/Lib/Draw/COpenGL.cs b/Vocaluxe/Lib/Draw/COpenGL.cs index 0ae4ad0f..06a09e95 100644 --- a/Vocaluxe/Lib/Draw/COpenGL.cs +++ b/Vocaluxe/Lib/Draw/COpenGL.cs @@ -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)