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. 7
      selfdrive/ui/paint.cc

@ -556,10 +556,13 @@ static void ui_draw_vision_event(UIState *s) {
color = nvgRGBA(23, 134, 68, 255);
} else if (s->status == STATUS_WARNING) {
color = COLOR_OCHRE;
} else if (s->scene.engageable) {
} else {
color = nvgRGBA(23, 51, 73, 255);
}
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);
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);
}
}
}

Loading…
Cancel
Save