From f70575805708cabdedea7498aaa3f710fde4d920 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 03:29:01 +0000
Subject: [PATCH] add lvds1024*800
---
kernel/lib/fonts/fonts.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/lib/fonts/fonts.c b/kernel/lib/fonts/fonts.c
index 5f4b07b..9738664 100644
--- a/kernel/lib/fonts/fonts.c
+++ b/kernel/lib/fonts/fonts.c
@@ -135,8 +135,8 @@
if (res > 20)
c += 20 - res;
- if ((font_w & (1 << (f->width - 1))) &&
- (font_h & (1 << (f->height - 1))))
+ if ((font_w & (1U << (f->width - 1))) &&
+ (font_h & (1U << (f->height - 1))))
c += 1000;
if (c > cc) {
--
Gitblit v1.6.2