From 813bafb03622784d9d1149ffdee36056e49de1ac Mon Sep 17 00:00:00 2001 From: philippe44 Date: Sun, 11 Sep 2022 10:14:33 -0700 Subject: [PATCH] with traces --- components/display/core/gds_image.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/display/core/gds_image.c b/components/display/core/gds_image.c index 3ca89e12..3e2a9754 100644 --- a/components/display/core/gds_image.c +++ b/components/display/core/gds_image.c @@ -424,8 +424,18 @@ bool GDS_DrawJPEG(struct GDS_Device* Device, uint8_t *Source, int x, int y, int Context.Pixels = 0; // do decompress & draw +ESP_LOGW(TAG,"Context before p:%d, w:%d, h:%d, min(%d,%d), ofs(%d,%d)", + Context.Pixels, + Context.Width, Context.Height, + Context.XMin, Context.YMin, + Context.XOfs, Context.YOfs); Res = jd_decomp(&Decoder, OutHandlerDirect, N); - if (Res == JDR_OK && Context.Pixels != (Context.Width + 1) * (Context.Height + 1)) { +ESP_LOGW(TAG,"Context after p:%d, w:%d, h:%d, min(%d,%d), ofs(%d,%d)", + Context.Pixels, + Context.Width, Context.Height, + Context.XMin, Context.YMin, + Context.XOfs, Context.YOfs); + if (Res == JDR_OK && Context.Pixels == Context.Width * Context.Height) { Device->Dirty = true; Ret = true; } else {