display red instead yellow when braking

This commit is contained in:
dragonpilot
2020-03-16 20:41:03 +10:00
parent f278b8513a
commit b0a8cd9bf6
+2 -2
View File
@@ -666,12 +666,12 @@ static void ui_draw_vision_speed(UIState *s) {
}
nvgFontFace(s->vg, "sans-bold");
nvgFontSize(s->vg, 96*2.5);
nvgFillColor(s->vg, nvgRGBA(255, 255, 255, 255));
nvgFillColor(s->vg, s->scene.brakeLights? COLOR_RED : COLOR_WHITE);
nvgText(s->vg, viz_speed_x+viz_speed_w/2, 240, speed_str, NULL);
nvgFontFace(s->vg, "sans-regular");
nvgFontSize(s->vg, 36*2.5);
nvgFillColor(s->vg, s->scene.brakeLights? COLOR_YELLOW : nvgRGBA(255, 255, 255, 200));
nvgFillColor(s->vg, nvgRGBA(255, 255, 255, 200));
if (s->is_metric) {
nvgText(s->vg, viz_speed_x+viz_speed_w/2, 320, "kph", NULL);