[gtk/wip/baedert/for-master: 5/12] gl renderer: Scale blur radius
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 5/12] gl renderer: Scale blur radius
- Date: Fri, 29 Nov 2019 09:50:49 +0000 (UTC)
commit a5cab5c84d93013a83816bb38307b9acfc28f6ad
Author: Timm Bäder <mail baedert org>
Date: Fri Nov 29 06:50:44 2019 +0100
gl renderer: Scale blur radius
We scale the texture size, so as a consequence we have to scale the blur
radius.
gsk/gl/gskglrenderer.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index d6f5111ba0..a49689014a 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1503,8 +1503,7 @@ render_blur_node (GskGLRenderer *self,
region.texture_id,
node->bounds.size.width * scale,
node->bounds.size.height * scale,
- blur_radius);
-
+ blur_radius * scale);
}
g_assert (blurred_texture_id != 0);
@@ -1689,7 +1688,7 @@ render_outset_shadow_node (GskGLRenderer *self,
texture_id,
texture_width,
texture_height,
- blur_radius);
+ blur_radius * scale);
gsk_gl_driver_mark_texture_permanent (self->gl_driver, blurred_texture_id);
gsk_gl_shadow_cache_commit (&self->shadow_cache,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]