Skip to content

Commit

Permalink
Adjust click area of image for animation frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Sep 4, 2024
1 parent 07c2090 commit da3e1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ int ctr_internal_media_mouse_down(SDL_Event event) {
if (
mediaIMGs[i].x < event.button.x &&
mediaIMGs[i].y < event.button.y &&
mediaIMGs[i].x + mediaIMGs[i].w > event.button.x &&
mediaIMGs[i].x + (mediaIMGs[i].w / (mediaIMGs[i].anims ? mediaIMGs[i].anims : 1)) > event.button.x &&
mediaIMGs[i].y + mediaIMGs[i].h > event.button.y &&
mediaIMGs[i].ref != NULL
) {
Expand Down

0 comments on commit da3e1c9

Please sign in to comment.