diff options
author | Timm Bäder <mail@baedert.org> | 2020-12-21 12:56:38 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-12-21 12:56:38 +0100 |
commit | 98b99201b0704c722ccaf132b4c9294310ce4461 (patch) | |
tree | 34d8c2635c09ef7cc5264b971c43a644595ba06a /gtk/gtktextlayout.c | |
parent | bce4d669ee6c66267c7017e440e3c4c4f244e18a (diff) | |
download | gtk+-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.c | 2 |
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, |