From 59165f077e899ebdbb4ab22a86521743f2a21cc1 Mon Sep 17 00:00:00 2001 From: besitzeruf Date: Tue, 16 Jun 2020 11:16:46 +0200 Subject: [PATCH] - Fix when border of the image (bottom and right sides) are drawn with different width ( decreased by 1) --- src/lv_draw/lv_img_buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_draw/lv_img_buf.c b/src/lv_draw/lv_img_buf.c index d5d4cf940..0607662c5 100644 --- a/src/lv_draw/lv_img_buf.c +++ b/src/lv_draw/lv_img_buf.c @@ -528,8 +528,8 @@ void _lv_img_buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t LV_UNUSED(pivot); res->x1 = 0; res->y1 = 0; - res->x2 = w; - res->y2 = h; + res->x2 = w - 1; + res->y2 = h - 1; #endif }