Skip to content

Commit

Permalink
Update ui.c (commaai#133)
Browse files Browse the repository at this point in the history
correct one comma radius
increase green blinker arrows
  • Loading branch information
berno22 authored and kegman committed Mar 19, 2019
1 parent c77ff0d commit 92ccd47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions selfdrive/ui/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ static void ui_draw_vision_maxspeed(UIState *s) {

// Draw Background
nvgBeginPath(s->vg);
nvgRoundedRect(s->vg, viz_maxspeed_x, viz_maxspeed_y, viz_maxspeed_w, viz_maxspeed_h, 30);
nvgRoundedRect(s->vg, viz_maxspeed_x, viz_maxspeed_y, viz_maxspeed_w, viz_maxspeed_h, 20);
if (is_set_over_limit) {
nvgFillColor(s->vg, nvgRGBA(218, 111, 37, 180));
} else {
Expand Down Expand Up @@ -1593,8 +1593,8 @@ static void ui_draw_vision_speed(UIState *s) {
nvgMoveTo(s->vg, viz_speed_x, box_y + header_h/4);
nvgLineTo(s->vg, viz_speed_x - viz_speed_w/2, box_y + header_h/4 + header_h/4);
nvgLineTo(s->vg, viz_speed_x, box_y + header_h/2 + header_h/4);
nvgLineTo(s->vg, viz_speed_x, box_y + header_h/4);
nvgFillColor(s->vg, nvgRGBA(23,134,68,scene->blinker_blinkingrate>=50?120:60));
nvgClosePath(s->vg);
nvgFillColor(s->vg, nvgRGBA(23,134,68,scene->blinker_blinkingrate>=50?210:60));
nvgFill(s->vg);
}

Expand All @@ -1603,8 +1603,8 @@ static void ui_draw_vision_speed(UIState *s) {
nvgMoveTo(s->vg, viz_speed_x+viz_speed_w, box_y + header_h/4);
nvgLineTo(s->vg, viz_speed_x+viz_speed_w + viz_speed_w/2, box_y + header_h/4 + header_h/4);
nvgLineTo(s->vg, viz_speed_x+viz_speed_w, box_y + header_h/2 + header_h/4);
nvgLineTo(s->vg, viz_speed_x+viz_speed_w, box_y + header_h/4);
nvgFillColor(s->vg, nvgRGBA(23,134,68,scene->blinker_blinkingrate>=50?120:60));
nvgClosePath(s->vg);
nvgFillColor(s->vg, nvgRGBA(23,134,68,scene->blinker_blinkingrate>=50?210:60));
nvgFill(s->vg);
}

Expand Down

0 comments on commit 92ccd47

Please sign in to comment.