From 48d61f33ab325311279b28c6b3c9edffd2277f7f Mon Sep 17 00:00:00 2001 From: radius Date: Fri, 11 Mar 2016 23:59:49 -0500 Subject: [PATCH] attempt to fix moto g2 issue --- menu/menu_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu/menu_input.c b/menu/menu_input.c index 66de0cbc0a..7880d7700b 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -1106,6 +1106,12 @@ static int menu_input_pointer_post_iterate( gfx_ctx_ctl(GFX_CTL_GET_METRICS, &metrics); + /* add a fallback in case the menu driver doesn't report dpi + * hopefully fixes issues with the moto G2 + */ + if (dpi <= 0) + dpi = 90; + if (!pointer_oldpressed[0]) { menu_input->pointer.accel = 0;