UI: cleanup draw_alerts condition (#19875)

pull/19881/head
Dean Lee 4 years ago committed by GitHub
parent 9efc499ed9
commit 8b4731ffc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/ui/paint.cc

@ -416,8 +416,7 @@ void ui_draw(UIState *s) {
s->scene.viz_rect.w -= sbr_w;
}
const bool draw_alerts = s->started && s->status != STATUS_OFFROAD &&
s->active_app == cereal::UiLayoutState::App::NONE;
const bool draw_alerts = s->started && s->active_app == cereal::UiLayoutState::App::NONE;
const bool draw_vision = draw_alerts && s->vipc_client->connected;
// GL drawing functions

Loading…
Cancel
Save