Fix triangle size (#21332)

old-commit-hash: 9086c377e245bf7ad668b834ef6dfa25a617559f
This commit is contained in:
Willem Melching
2021-06-19 11:21:54 +02:00
committed by GitHub
parent 880d64d615
commit 182b3eb4c7
+1 -1
View File
@@ -84,7 +84,7 @@ static void draw_lead(UIState *s, const cereal::RadarState::LeadData::Reader &le
fillAlpha = (int)(fmin(fillAlpha, 255));
}
float sz = std::clamp((25 * 30) / (d_rel / 3 + 30), 15.0f, 30.0f) * s->zoom;
float sz = std::clamp((25 * 30) / (d_rel / 3 + 30), 15.0f, 30.0f) * 2.35;
x = std::clamp(x, 0.f, s->viz_rect.right() - sz / 2);
y = std::fmin(s->viz_rect.bottom() - sz * .6, y);
draw_chevron(s, x, y, sz, nvgRGBA(201, 34, 49, fillAlpha), COLOR_YELLOW);