Skip to content

Commit

Permalink
reverted, i have better idea.
Browse files Browse the repository at this point in the history
  • Loading branch information
rav4kumar committed Jul 31, 2020
1 parent 69291df commit 73c20ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ static void send_df(UIState *s, int status) {
}

static bool handle_df_touch(UIState *s, int touch_x, int touch_y) {
if (s->awake && s->vision_connected && s->status != STATUS_STOPPED)
if (touch_x >= 1212 && touch_x <= 1310 && touch_y >= 902 && touch_y <= 1013) {
if (s->awake && s->vision_connected && s->status != STATUS_STOPPED) {
int padding = 40;
if ((1660 - padding <= touch_x) && (855 - padding <= touch_y)) {
s->scene.uilayout_sidebarcollapsed = true; // collapse sidebar when tapping df button
s->scene.dfButtonStatus++;
if (s->scene.dfButtonStatus > 3) {
Expand Down

0 comments on commit 73c20ed

Please sign in to comment.