Fix steering wheel icon showing (#1497)

* this should fix steering wheel icon showing

* fix syntax
pull/1499/head
Willem Melching 5 years ago committed by GitHub
parent 7a9ac37b9b
commit 2ae2c40b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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