fix(gdb): use stride to get actual buffer width for display dump (#8853)

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
terry.rong
2025-09-13 00:33:12 +08:00
committed by GitHub
parent 1cba424174
commit a3e3a1455f
+2 -1
View File
@@ -257,11 +257,12 @@ class LVDrawBuf(Value):
# Get buffer metadata
header = self.super_value("header")
width = int(header["w"])
stride = int(header["stride"])
height = int(header["h"])
cf_info = self.color_format_info()
data_ptr = self.super_value("data")
data_size = int(self.super_value("data_size"))
width = (stride * 8) // cf_info["bpp"] if cf_info["bpp"] else 0
# Validate buffer data
if not data_ptr: