Fix DrawColorReflection (thx Darkice)
This commit is contained in:
1 parent
df8f2c10d2
commit
c40f07c2a1
1 file changed
+5
@@ -663,6 +663,10 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
|
|
||||||
public void DrawColorReflection(SColorF color, SRectF rect, float space, float height)
|
public void DrawColorReflection(SColorF color, SRectF rect, float space, float height)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (rect.H < height)
|
||||||
|
height = rect.H;
|
||||||
|
|
||||||
float rx1 = rect.X;
|
float rx1 = rect.X;
|
||||||
float rx2 = rect.X + rect.W;
|
float rx2 = rect.X + rect.W;
|
||||||
float ry1 = rect.Y + rect.H + space;
|
float ry1 = rect.Y + rect.H + space;
|
||||||
@@ -680,6 +684,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
if (ry2 > rect.Y + rect.H + space + height)
|
if (ry2 > rect.Y + rect.H + space + height)
|
||||||
ry2 = rect.Y + rect.H + space + height;
|
ry2 = rect.Y + rect.H + space + height;
|
||||||
|
|
||||||
|
|
||||||
GL.Enable(EnableCap.Blend);
|
GL.Enable(EnableCap.Blend);
|
||||||
|
|
||||||
if (rect.Rotation != 0f)
|
if (rect.Rotation != 0f)
|
||||||
|
|||||||
Reference in new issue
Block a user