diff --git a/gfx/drivers_context/mali_fbdev_ctx.c b/gfx/drivers_context/mali_fbdev_ctx.c index 8e88fbbcc7..3ffd90aedf 100644 --- a/gfx/drivers_context/mali_fbdev_ctx.c +++ b/gfx/drivers_context/mali_fbdev_ctx.c @@ -180,7 +180,7 @@ static bool gfx_ctx_mali_fbdev_set_video_mode(void *data, mali->native_window.height = vinfo.yres; mali->refresh_rate = 1000000.0f / vinfo.pixclock * 1000000.0f / - (vinfo.yres + vinfo.upper_margin + vinfo.lower_margin + vinfo.vsync_len) + (vinfo.yres + vinfo.upper_margin + vinfo.lower_margin + vinfo.vsync_len) / (vinfo.xres + vinfo.left_margin + vinfo.right_margin + vinfo.hsync_len); #ifdef HAVE_EGL