More code cleanup

old-commit-hash: 3b909eb693
commatwo_master
Vehicle Researcher 8 years ago
parent 8849ae9fdd
commit af3cf45fc1
  1. 11
      selfdrive/ui/ui.c

@ -633,6 +633,10 @@ static void ui_draw_rounded_rect(
// Draw the rect // Draw the rect
nvgFill(c); nvgFill(c);
// Draw white border around rect
nvgStrokeColor(c, nvgRGBA(255,255,255,200));
nvgStroke(c);
} }
// Draw all world space objects. // Draw all world space objects.
@ -650,14 +654,9 @@ static void ui_draw_world(UIState *s) {
// Left side // Left side
ui_draw_rounded_rect(s->vg, -15, 0, 570, 180, 20, nvgRGBA(10,10,10,170)); ui_draw_rounded_rect(s->vg, -15, 0, 570, 180, 20, nvgRGBA(10,10,10,170));
nvgStrokeColor(s->vg, nvgRGBA(255,255,255,200));
nvgStroke(s->vg);
// Right side // Right side
ui_draw_rounded_rect(s->vg, 1920-530, 0, 150, 180, 20, nvgRGBA(10,10,10,170)); ui_draw_rounded_rect(s->vg, 1920-530, 0, 150, 180, 20, nvgRGBA(10,10,10,170));
nvgStrokeColor(s->vg, nvgRGBA(255,255,255,200));
nvgStroke(s->vg);
/******************************************/ /******************************************/
draw_steering(s, scene->v_ego, scene->angle_steers); draw_steering(s, scene->v_ego, scene->angle_steers);
@ -683,8 +682,6 @@ static void ui_draw_world(UIState *s) {
******************************************/ ******************************************/
// Draw background for radar text // Draw background for radar text
ui_draw_rounded_rect(s->vg, 580, 0, 195, 180, 20, nvgRGBA(10,10,10,170)); ui_draw_rounded_rect(s->vg, 580, 0, 195, 180, 20, nvgRGBA(10,10,10,170));
nvgStrokeColor(s->vg, nvgRGBA(255,255,255,200));
nvgStroke(s->vg);
/******************************************/ /******************************************/
if (s->is_metric) { if (s->is_metric) {

Loading…
Cancel
Save