diff --git a/gfx/drivers_context/android_ctx.c b/gfx/drivers_context/android_ctx.c index 46020783e0..9c444b676d 100644 --- a/gfx/drivers_context/android_ctx.c +++ b/gfx/drivers_context/android_ctx.c @@ -433,7 +433,8 @@ static bool android_gfx_ctx_get_metrics(void *data, dpi_fallback: /* add a fallback in case the device doesn't report DPI. * Hopefully fixes issues with the moto G2. */ - dpi = 90; + dpi = 90; + *value = (float)dpi; return true; }