mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
ports/stm32: Fix GPU drawing offset.
This commit is contained in:
parent
899d645e69
commit
43c6b6c5fd
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user