[gtk/wip/baedert/for-master: 23/23] textlayout: Remove dead offset_y code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 23/23] textlayout: Remove dead offset_y code
- Date: Mon, 21 Dec 2020 09:26:12 +0000 (UTC)
commit 2031c5bf908b3c28cd9b069cf82a4255bd6f2eab
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 21 10:21:24 2020 +0100
textlayout: Remove dead offset_y code
gtk/gtktextlayout.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 57983ae6b7..2bc7e5dbed 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -3906,7 +3906,6 @@ gtk_text_layout_after_buffer_delete_range (GtkTextBuffer *textbuffer,
static void
render_para (GskPangoRenderer *crenderer,
- int offset_y,
GtkTextLineDisplay *line_display,
int selection_start_index,
int selection_end_index,
@@ -3936,13 +3935,6 @@ render_para (GskPangoRenderer *crenderer,
gtk_style_context_restore (context);
}
- if (offset_y)
- {
- gtk_snapshot_save (crenderer->snapshot);
- gtk_snapshot_translate (crenderer->snapshot,
- &GRAPHENE_POINT_INIT (0, offset_y));
- }
-
do
{
PangoLayoutLine *line = pango_layout_iter_get_line_readonly (iter);
@@ -4114,9 +4106,6 @@ render_para (GskPangoRenderer *crenderer,
}
while (pango_layout_iter_next_line (iter));
- if (offset_y)
- gtk_snapshot_restore (crenderer->snapshot);
-
pango_layout_iter_free (iter);
}
@@ -4248,7 +4237,7 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
if (line_display->node == NULL)
{
gtk_snapshot_push_collect (snapshot);
- render_para (crenderer, 0, line_display,
+ render_para (crenderer, line_display,
selection_start_index, selection_end_index,
cursor_alpha);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]