mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 02:37:01 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user