Skip to content

Commit

Permalink
Fix text selection in image with alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Oct 20, 2024
1 parent 8bc735d commit e4191bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ void ctr_internal_media_infercursorpos(MediaIMG* image, int x, int y) {
CtrMediaInputIndex = 0;
return;
}
int relx = x - image->x;
int rely = y - image->y;
int relx = x - image->x - image->paddingx;
int rely = y - image->y - image->paddingy;
int lineHeight;
lineHeight = image->lineheight;
CtrMediaMaxLines = floor(image->h/lineHeight);
Expand Down

0 comments on commit e4191bd

Please sign in to comment.