Add to HORRIBLE UGLY HACKY CODE to make sure barrier pips have outlines

This commit is contained in:
baldurk
2016-07-15 14:17:45 +02:00
parent 949f2df9f4
commit 9cb37bfb4f
+11 -1
View File
@@ -171,16 +171,23 @@ namespace renderdocui.Windows
{
uptri[1] = new PointF(x + width / 2.0f, y + height - 2);
update = false;
type = 1;
}
if (type == 4)
{
uptri[0] = new PointF(x + width / 2.0f, y + height - 2);
type = 1;
}
if (type == 5)
{
update = false;
type = 1;
}
if (type == 6)
{
update = false;
type = 2;
}
type = 1;
}
if (x - lastPipX[type] > pipRadius*2.0f)
@@ -609,6 +616,9 @@ namespace renderdocui.Windows
int type = 2;
if (u.usage == ResourceUsage.Barrier)
type = 6;
DrawPip(g, barcol, highlightBarRect, type, d, s.draws.Count, start, widths[i], "");
}
}