From d7bc0fd24cffe09cbd8b82b9119ec777ff570737 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 27 Feb 2016 03:26:52 +0100 Subject: [PATCH] textview: Fix coordinates when background drawing of text node Fixes black areas in source view of gtk-demo. --- gtk/gtktextview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 3424c4756b..d36570c4e4 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -5861,7 +5861,7 @@ draw_text (cairo_t *cr, context = gtk_widget_get_style_context (widget); gtk_style_context_save_to_node (context, text_view->priv->text_window->css_node); gtk_render_background (context, cr, - -priv->xoffset, -priv->yoffset, + -priv->xoffset, -priv->yoffset - priv->top_border, MAX (SCREEN_WIDTH (text_view), priv->width), MAX (SCREEN_HEIGHT (text_view), priv->height)); gtk_style_context_restore (context);