summaryrefslogtreecommitdiff
path: root/gsk/gskrendernodeimpl.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-17 12:37:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-17 12:37:36 -0400
commit87af45403ace1047b91ddbab98d9d5a5e15b84eb (patch)
treea9949be8a425e95e4c6531139a0019ff3a042335 /gsk/gskrendernodeimpl.c
parent37a54eb9fc063675bf0cbdafc85f63b96572a72b (diff)
downloadgtk+-87af45403ace1047b91ddbab98d9d5a5e15b84eb.tar.gz
gsk: Stop enlarging text bounding boxes
This should not be necessary and only serves to make the actual bugs harder to find.
Diffstat (limited to 'gsk/gskrendernodeimpl.c')
-rw-r--r--gsk/gskrendernodeimpl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index fd2a9e5d44..18cbcd185a 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -4477,10 +4477,10 @@ gsk_text_node_new (PangoFont *font,
self->num_glyphs = n;
graphene_rect_init (&node->bounds,
- offset->x + ink_rect.x - 1,
- offset->y + ink_rect.y - 1,
- ink_rect.width + 2,
- ink_rect.height + 2);
+ offset->x + ink_rect.x,
+ offset->y + ink_rect.y,
+ ink_rect.width,
+ ink_rect.height);
return node;
}