diff options
author | Timm Bäder <mail@baedert.org> | 2019-07-21 09:47:09 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-07-21 09:47:09 +0200 |
commit | 2ca56d4c4c70a90b51680a5e564ee26eb5784219 (patch) | |
tree | 9a3f15b2fae08aa9f27fa31b977fad2df191eae6 /gtk/gtktextdisplay.c | |
parent | f6d7967e96a3b674459d996e24052d32e99b80ad (diff) | |
download | gtk+-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.c | 4 |
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); |