Fix steering wheel icon showing (#1497)

* this should fix steering wheel icon showing

* fix syntax
old-commit-hash: 2ae2c40b29
commatwo_master
Willem Melching 5 years ago committed by GitHub
parent d953101592
commit 0214bfa5eb
  1. 5
      selfdrive/ui/paint.cc

@ -556,12 +556,15 @@ static void ui_draw_vision_event(UIState *s) {
color = nvgRGBA(23, 134, 68, 255); color = nvgRGBA(23, 134, 68, 255);
} else if (s->status == STATUS_WARNING) { } else if (s->status == STATUS_WARNING) {
color = COLOR_OCHRE; color = COLOR_OCHRE;
} else if (s->scene.engageable) { } else {
color = nvgRGBA(23, 51, 73, 255); color = nvgRGBA(23, 51, 73, 255);
} }
if (s->scene.engageable){
ui_draw_circle_image(s->vg, bg_wheel_x, bg_wheel_y, bg_wheel_size, s->img_wheel, color, 1.0f, bg_wheel_y - 25); ui_draw_circle_image(s->vg, bg_wheel_x, bg_wheel_y, bg_wheel_size, s->img_wheel, color, 1.0f, bg_wheel_y - 25);
} }
} }
}
static void ui_draw_vision_map(UIState *s) { static void ui_draw_vision_map(UIState *s) {
const int map_size = 96; const int map_size = 96;

Loading…
Cancel
Save