Fix missing division sign in sunxi_gfx.c

Same fix as 71c031099b for the same problem, just in a different file.
This commit is contained in:
Conrad Kreyling 2020-11-23 13:31:16 -05:00 committed by GitHub
parent 96af31bce7
commit 9cfe50ddd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)