hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 035707fb15a90ce80d297ddb75b7e908c9fe051d Mon Sep 17 00:00:00 2001
From: Jinkun Hong <jinkun.hong@rock-chips.com>
Date: Mon, 6 Jun 2022 09:46:02 +0800
Subject: [PATCH 2/6] Increase width and height limits
 
Signed-off-by: Jinkun Hong <jinkun.hong@rock-chips.com>
---
 src/draw/lv_img_buf.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 
diff --git a/src/draw/lv_img_buf.h b/src/draw/lv_img_buf.h
index 984483e..5f26afd 100644
--- a/src/draw/lv_img_buf.h
+++ b/src/draw/lv_img_buf.h
@@ -108,8 +108,8 @@ typedef uint8_t lv_img_cf_t;
 #if LV_BIG_ENDIAN_SYSTEM
 typedef struct {
 
-    uint32_t h : 11; /*Height of the image map*/
-    uint32_t w : 11; /*Width of the image map*/
+    uint32_t h : 16; /*Height of the image map*/
+    uint32_t w : 16; /*Width of the image map*/
     uint32_t reserved : 2; /*Reserved to be used later*/
     uint32_t always_zero : 3; /*It the upper bits of the first byte. Always zero to look like a
                                  non-printable character*/
@@ -125,8 +125,8 @@ typedef struct {
 
     uint32_t reserved : 2; /*Reserved to be used later*/
 
-    uint32_t w : 11; /*Width of the image map*/
-    uint32_t h : 11; /*Height of the image map*/
+    uint32_t w : 16; /*Width of the image map*/
+    uint32_t h : 16; /*Height of the image map*/
 } lv_img_header_t;
 #endif
 
-- 
2.7.4