[gtk+] cssshadowvalue: don't apply the y_scale offset twice to the shadow
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssshadowvalue: don't apply the y_scale offset twice to the shadow
- Date: Fri, 8 Dec 2017 23:23:22 +0000 (UTC)
commit 29f36fed085d51bad16ec0e3f7ba5085bf9f82e8
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Dec 7 17:00:01 2017 -0500
cssshadowvalue: don't apply the y_scale offset twice to the shadow
As per commit 942e904 this changed causing a regression that
seems to be visible only when scale > 2.
https://bugzilla.gnome.org/show_bug.cgi?id=791363
gtk/gtkcssshadowvalue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index f29d403..c81d82b 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -361,7 +361,7 @@ gtk_css_shadow_value_start_drawing (const GtkCssValue *shadow,
cairo_surface_set_device_scale (surface, x_scale, y_scale);
cairo_surface_set_device_offset (surface,
x_scale * ((blur_x ? clip_radius: 0) - clip_rect.x),
- y_scale * ((blur_y ? clip_radius * y_scale : 0) - clip_rect.y));
+ y_scale * ((blur_y ? clip_radius: 0) - clip_rect.y));
blur_cr = cairo_create (surface);
cairo_set_user_data (blur_cr, &original_cr_key, cairo_reference (cr), (cairo_destroy_func_t)
cairo_destroy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]