summaryrefslogtreecommitdiff
path: root/gtk/gtktextdisplay.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-07-21 09:47:09 +0200
committerTimm Bäder <mail@baedert.org>2019-07-21 09:47:09 +0200
commit2ca56d4c4c70a90b51680a5e564ee26eb5784219 (patch)
tree9a3f15b2fae08aa9f27fa31b977fad2df191eae6 /gtk/gtktextdisplay.c
parentf6d7967e96a3b674459d996e24052d32e99b80ad (diff)
downloadgtk+-2ca56d4c4c70a90b51680a5e564ee26eb5784219.tar.gz
linedisplay: Save paragraph bg color inline
No need to allocate this separately.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r--gtk/gtktextdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index de02bd3b47..9c2dae9e14 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -642,13 +642,13 @@ render_para (GtkTextRenderer *text_renderer,
}
else
{
- if (line_display->pg_bg_rgba)
+ if (line_display->pg_bg_rgba_set)
{
cairo_t *cr = text_renderer->cr;
cairo_save (cr);
- gdk_cairo_set_source_rgba (text_renderer->cr, line_display->pg_bg_rgba);
+ gdk_cairo_set_source_rgba (text_renderer->cr, &line_display->pg_bg_rgba);
cairo_rectangle (cr,
line_display->left_margin, selection_y,
screen_width, selection_height);