解决白线问题。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-08-23 19:00:16 +08:00
parent 324bc1aedf
commit acf2616a20
1 changed files with 3 additions and 3 deletions

View File

@ -239,7 +239,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe,
{
switch (par->info->var.rotate) {
case 0:
xs += 0x23; // 如果显示有偏移,将 xs xe 偏移改成 0x24 试试
xs += 0x23; // 如果显示有偏移,将 xs xe 偏移改成 0x24 试试
xe += 0x23;
ys += 0x00;
ye += 0x00;
@ -247,7 +247,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe,
default:
xs += 0x00;
xe += 0x00;
ys += 0x24;
ys += 0x23;
ye += 0x24;
break;
}
@ -262,7 +262,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe,
static struct fbtft_display display = {
.regwidth = 8,
.width = 170,
.width = 171,
.height = 320,
.gamma_num = 2,
.gamma_len = 14,