summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-12-21 12:56:38 +0100
committerTimm Bäder <mail@baedert.org>2020-12-21 12:56:38 +0100
commit98b99201b0704c722ccaf132b4c9294310ce4461 (patch)
tree34d8c2635c09ef7cc5264b971c43a644595ba06a /gtk/gtktextlayout.c
parentbce4d669ee6c66267c7017e440e3c4c4f244e18a (diff)
downloadgtk+-98b99201b0704c722ccaf132b4c9294310ce4461.tar.gz
gskpango: Remove bounds rect
We only need this to render shapes and trapezoids, i.e. only when falling back to cairo. Remove code to measure the layout and convert the ink_rect to a graphene_rect_t from gtk_snapshot_append_layout() and do it when drawing shapes and trapezoids instead.
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 2bc7e5dbed..ecbd2d3a08 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -4166,8 +4166,6 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
crenderer->snapshot = snapshot;
crenderer->fg_color = color;
- graphene_rect_init (&crenderer->bounds, 0, 0, clip->width, clip->height);
-
gtk_text_layout_wrap_loop_start (layout);
have_selection = gtk_text_buffer_get_selection_bounds (layout->buffer,