projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a54eb
)
gsk: Stop enlarging text bounding boxes
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Sep 2021 16:37:36 +0000
(12:37 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Sep 2021 16:37:36 +0000
(12:37 -0400)
This should not be necessary and only serves
to make the actual bugs harder to find.
gsk/gskrendernodeimpl.c
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeimpl.c
b/gsk/gskrendernodeimpl.c
index fd2a9e5d4422136636f27faff0e96d0c85f36a54..18cbcd185afb6729a619bcd659406941340cd98b 100644
(file)
--- 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;
}