textview: Fix coordinates when background drawing of text node

Fixes black areas in source view of gtk-demo.
This commit is contained in:
Benjamin Otte 2016-02-27 03:26:52 +01:00
parent 914f7bd6e4
commit d7bc0fd24c

View File

@ -5861,7 +5861,7 @@ draw_text (cairo_t *cr,
context = gtk_widget_get_style_context (widget); context = gtk_widget_get_style_context (widget);
gtk_style_context_save_to_node (context, text_view->priv->text_window->css_node); gtk_style_context_save_to_node (context, text_view->priv->text_window->css_node);
gtk_render_background (context, cr, 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_WIDTH (text_view), priv->width),
MAX (SCREEN_HEIGHT (text_view), priv->height)); MAX (SCREEN_HEIGHT (text_view), priv->height));
gtk_style_context_restore (context); gtk_style_context_restore (context);