~sircmpwn/visurf-devel

nsvi: account for zoom in follow hint placement v1 APPLIED

Pranjal Kole: 1
 nsvi: account for zoom in follow hint placement

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/visurf-devel/patches/27850/mbox | git am -3
Learn more about email & git

[PATCH] nsvi: account for zoom in follow hint placement Export this patch

Fixes: https://todo.sr.ht/~sircmpwn/visurf/55
---
 frontends/visurf/commands.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/frontends/visurf/commands.c b/frontends/visurf/commands.c
index b244511d6..ed4adaeef 100644
--- a/frontends/visurf/commands.c
+++ b/frontends/visurf/commands.c
@@ -182,7 +182,9 @@ follow_collect_hints(struct gui_window *win, struct box *node, int x, int y)
				follow->zhint * sizeof(struct link_hint));
		}
		struct link_hint *hint = &follow->hints[follow->nhint];
		hint->x = x + node->x, hint->y = y + node->y;
		float scale = browser_window_get_scale(win->bw);
		hint->x = lroundf(scale * (x + node->x));
		hint->y = lroundf(scale * (y + node->y));
		hint->width = node->width, hint->height = node->height;
		hint->url = node->href;
		++follow->nhint;
-- 
2.34.1
Thanks!

To git@git.sr.ht:~sircmpwn/visurf
   6be410ec3..0cad23641  master -> master