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);