summaryrefslogtreecommitdiff
path: root/frontends/gtk/scaffolding.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-03 11:58:44 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-03 14:29:06 +0100
commitd4c01894c21559cd4199c0f15b9e8b7bec4b692c (patch)
tree99a9dad1873b37a22ef344fd002484feefd93c70 /frontends/gtk/scaffolding.c
parent0ebfff259fa4ec6aaf5e97a213d5c65c24052e96 (diff)
downloadnetsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.gz
netsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.bz2
change browser_window_get_features to use unscaled coordinates
Diffstat (limited to 'frontends/gtk/scaffolding.c')
-rw-r--r--frontends/gtk/scaffolding.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c
index 6b6f936ff..8625d9a4c 100644
--- a/frontends/gtk/scaffolding.c
+++ b/frontends/gtk/scaffolding.c
@@ -2716,13 +2716,11 @@ void nsgtk_scaffolding_context_menu(struct nsgtk_scaffolding *g,
{
GtkMenu *gtkmenu;
struct browser_window *bw;
- float scale;
bw = nsgtk_get_browser_window(g->top_level);
- scale = browser_window_get_scale(bw);
/* update the global context menu features */
- browser_window_get_features(bw, x/scale, y/scale, &current_menu_features);
+ browser_window_get_features(bw, x, y, &current_menu_features);
if (current_menu_features.link != NULL) {
/* menu is opening over a link */