From 9cfe50ddd35ecee1076edd3ca1e243d184c58506 Mon Sep 17 00:00:00 2001 From: Conrad Kreyling Date: Mon, 23 Nov 2020 13:31:16 -0500 Subject: [PATCH] Fix missing division sign in sunxi_gfx.c Same fix as https://github.com/libretro/RetroArch/commit/71c031099b3c39ba1f800889b6fcc9d8c955adb5 for the same problem, just in a different file. --- gfx/drivers/sunxi_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/sunxi_gfx.c b/gfx/drivers/sunxi_gfx.c index e89214bb59..ae2bf8b691 100644 --- a/gfx/drivers/sunxi_gfx.c +++ b/gfx/drivers/sunxi_gfx.c @@ -418,7 +418,7 @@ static sunxi_disp_t *sunxi_disp_init(const char *device) (ctx->xres * ctx->bits_per_pixel / 8); ctx->gfx_layer_size = ctx->xres * ctx->yres * fb_var.bits_per_pixel / 8; ctx->refresh_rate = 1000000.0f / fb_var.pixclock * 1000000.0f / - (fb_var.yres + fb_var.upper_margin + fb_var.lower_margin + fb_var.vsync_len) + (fb_var.yres + fb_var.upper_margin + fb_var.lower_margin + fb_var.vsync_len) / (fb_var.xres + fb_var.left_margin + fb_var.right_margin + fb_var.hsync_len); if (ctx->framebuffer_size < ctx->gfx_layer_size)