From 71c031099b3c39ba1f800889b6fcc9d8c955adb5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 27 Apr 2018 22:44:53 -0400 Subject: [PATCH] Fix missing division in mali fbdev --- gfx/drivers_context/mali_fbdev_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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