From 43c6b6c5fd9676246bef13ab134548ddb298d4b4 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 18 May 2025 16:40:11 +0300 Subject: [PATCH] ports/stm32: Fix GPU drawing offset. --- ports/stm32/omv_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/omv_gpu.c b/ports/stm32/omv_gpu.c index 30276081f..547a00b27 100644 --- a/ports/stm32/omv_gpu.c +++ b/ports/stm32/omv_gpu.c @@ -113,7 +113,7 @@ int omv_gpu_draw_image(image_t *src_img, // Configure operations. nema_set_blend_blit(NEMA_BL_SRC); - nema_set_clip(0, 0, dst_rect->w, dst_rect->h); + nema_set_clip(dst_rect->x, dst_rect->y, dst_rect->w, dst_rect->h); nema_blit_subrect_fit(dst_rect->x, dst_rect->y, dst_rect->w, dst_rect->h, src_rect->x, src_rect->y, src_rect->w, src_rect->h);