~sircmpwn/visurf-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

Details
Message ID
<20211231094458.22379-1-pranjal.kole7@gmail.com>
DKIM signature
missing
Download raw message
Patch: +3 -1
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
Details
Message ID
<CGTE51S5K7R1.9XMNB2OSVUA5@taiga>
In-Reply-To
<20211231094458.22379-1-pranjal.kole7@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/visurf
   6be410ec3..0cad23641  master -> master
Reply to thread Export thread (mbox)