From 8bc36b7f21cb388e5a6b924c3600be7694a27c75 Mon Sep 17 00:00:00 2001 From: Vehicle Researcher Date: Mon, 12 Jun 2017 09:03:49 -0700 Subject: [PATCH] Adjust position of left speed to align with label (based on 2 digit speeds) --- selfdrive/ui/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/ui.c b/selfdrive/ui/ui.c index f7511ee9e8..0a4a124f21 100644 --- a/selfdrive/ui/ui.c +++ b/selfdrive/ui/ui.c @@ -681,7 +681,7 @@ static void ui_draw_world(UIState *s) { * light background scenes ******************************************/ // 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, 578, 0, 195, 180, 20, nvgRGBA(10,10,10,170)); /******************************************/ if (s->is_metric) { @@ -761,7 +761,7 @@ static void ui_draw_vision(UIState *s) { (int)(scene->v_cruise * 0.621371 + 0.5)); } nvgTextAlign(s->vg, NVG_ALIGN_RIGHT | NVG_ALIGN_BASELINE); - nvgText(s->vg, 480, 95, speed_str, NULL); + nvgText(s->vg, 430, 95, speed_str, NULL); } // Add label