24 lines
1,014 B
Diff
24 lines
1,014 B
Diff
|
From c5bb0d59161730e546f279bfbbd097f5eb3e3a7e Mon Sep 17 00:00:00 2001
|
||
|
From: DolphinChips <DoIphinChips@protonmail.com>
|
||
|
Date: Mon, 21 Oct 2019 19:58:45 +0500
|
||
|
Subject: [PATCH] Add a little hack to sprdfb_main.c
|
||
|
|
||
|
---
|
||
|
drivers/video/sprdfb/sprdfb_main.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/drivers/video/sprdfb/sprdfb_main.c b/drivers/video/sprdfb/sprdfb_main.c
|
||
|
index 43876285..751616a1 100644
|
||
|
--- a/drivers/video/sprdfb/sprdfb_main.c
|
||
|
+++ b/drivers/video/sprdfb/sprdfb_main.c
|
||
|
@@ -531,7 +531,8 @@ static int sprdfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fb)
|
||
|
if ((var->xres != fb->var.xres) ||
|
||
|
(var->yres != fb->var.yres) ||
|
||
|
(var->xres_virtual != fb->var.xres_virtual) ||
|
||
|
- (var->yres_virtual != fb->var.yres_virtual) ||
|
||
|
+ // (var->yres_virtual != fb->var.yres_virtual) ||
|
||
|
+ (fb->var.yres_virtual % var->yres_virtual != 0) ||
|
||
|
(var->xoffset != fb->var.xoffset) ||
|
||
|
#ifndef BIT_PER_PIXEL_SURPPORT
|
||
|
(var->bits_per_pixel != fb->var.bits_per_pixel) ||
|