From 6bc3300e5a3d828be546149df9adf77bf6c2efd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 20 Oct 2017 06:10:58 +0200 Subject: [PATCH] st-scroll-view-fade: Include outer bound of pixel on border The fade shader will draw the fade effect up until the border pixel. If we set the bottom right coordinate to the outer edge of the pixel we might end up not drawing the fade effect on all of the pixels. This could for example happen if one logical pixel (clutter stage pixel) consists of more than one physical pixel. https://bugzilla.gnome.org/show_bug.cgi?id=765011 --- src/st/st-scroll-view-fade.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/st/st-scroll-view-fade.c b/src/st/st-scroll-view-fade.c index 37f44c42c..3942cbcf0 100644 --- a/src/st/st-scroll-view-fade.c +++ b/src/st/st-scroll-view-fade.c @@ -110,8 +110,8 @@ st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect) */ fade_area_topleft[0] = content_box.x1 + (verts[0].x - paint_box.x1); fade_area_topleft[1] = content_box.y1 + (verts[0].y - paint_box.y1); - fade_area_bottomright[0] = content_box.x2 + (verts[3].x - paint_box.x2); - fade_area_bottomright[1] = content_box.y2 + (verts[3].y - paint_box.y2); + fade_area_bottomright[0] = content_box.x2 + (verts[3].x - paint_box.x2) + 1; + fade_area_bottomright[1] = content_box.y2 + (verts[3].y - paint_box.y2) + 1; g_object_get (ST_SCROLL_VIEW (self->actor), "hscrollbar-visible", &h_scroll_visible,