Soften the outline a bit and fix overlap.

This commit is contained in:
Unknown W. Brackets committed 2015-05-28 07:29:05 -07:00
1 parent d323dd472f
commit 8258a7341e
1 file changed
+2 -2
+2 -2
View File
@@ -880,14 +880,14 @@ void DrawProfile(UIContext &ui) {
if (area)
col = opacity | (col & 0xFFFFFF);
UI::Drawable color(col);
UI::Drawable outline(opacity | 0xFFFFFF);
UI::Drawable outline((opacity >> 1) | 0xFFFFFF);
if (area) {
for (int n = 0; n < historyLength; n++) {
float val = history[n];
float valY1 = ui.GetBounds().y2() - 10 - (val + total[n]) * scale;
float valY2 = ui.GetBounds().y2() - 10 - total[n] * scale;
ui.FillRect(outline, Bounds(x, valY1, dx, valY2 - valY1 + 0.5f));
ui.FillRect(outline, Bounds(x, valY2, dx, 1.0f));
ui.FillRect(color, Bounds(x, valY1, dx, valY2 - valY1));
x += dx;
total[n] += val;