attempt to fix moto g2 issue
This commit is contained in:
parent
c5ed4f1f65
commit
48d61f33ab
|
@ -1106,6 +1106,12 @@ static int menu_input_pointer_post_iterate(
|
||||||
|
|
||||||
gfx_ctx_ctl(GFX_CTL_GET_METRICS, &metrics);
|
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])
|
if (!pointer_oldpressed[0])
|
||||||
{
|
{
|
||||||
menu_input->pointer.accel = 0;
|
menu_input->pointer.accel = 0;
|
||||||
|
|
Loading…
Reference in New Issue