From b0a8cd9bf62a7bb8fa188cb24511f0e5427606e1 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 16 Mar 2020 20:41:03 +1000 Subject: [PATCH] display red instead yellow when braking --- selfdrive/ui/paint.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/paint.cc b/selfdrive/ui/paint.cc index a22f18705..0cc6c66f4 100644 --- a/selfdrive/ui/paint.cc +++ b/selfdrive/ui/paint.cc @@ -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);