From 9d432ec28c5e7a597e46f27f561950fa1cf1d986 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 23 Jun 2020 09:29:36 -0300 Subject: [PATCH] Implementing "save as image". --- src/selection/pixbuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/selection/pixbuf.c b/src/selection/pixbuf.c index 051be35..17edc63 100644 --- a/src/selection/pixbuf.c +++ b/src/selection/pixbuf.c @@ -111,7 +111,7 @@ GdkPixbuf * v3270_get_selection_as_pixbuf(v3270 * terminal, const GList *selecti v3270_draw_element( cr, block->contents[src].chr, - block->contents[src].attribute.visual, + block->contents[src].attribute.visual & ~LIB3270_ATTR_SELECTED, terminal->host, &terminal->font, &rect, @@ -119,6 +119,7 @@ GdkPixbuf * v3270_get_selection_as_pixbuf(v3270 * terminal, const GList *selecti ); } + src++; rect.x += rect.width; } -- libgit2 0.21.2