[gnome-shell] [shadows] Fix shadows with small blur radius
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [shadows] Fix shadows with small blur radius
- Date: Sat, 24 Jul 2010 22:39:43 +0000 (UTC)
commit 02ebd448519cf3b682419cf452376397d4668610
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Jul 24 13:02:31 2010 +0200
[shadows] Fix shadows with small blur radius
There's an assertion in calculate_gaussian_kernel() to avoid a division
by zero - due to an unnecessary cast from float to int this assertion
is triggered incorrectly for small (but non-zero) values, e.g. a blur
radius of 1px.
src/st/st-theme-node-drawing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 46d9de7..5bd41c7 100644
--- a/src/st/st-theme-node-drawing.c
+++ b/src/st/st-theme-node-drawing.c
@@ -50,7 +50,7 @@ calculate_gaussian_kernel (gdouble sigma,
gdouble exp_divisor;
gint half, i;
- g_return_val_if_fail ((int) sigma > 0, NULL);
+ g_return_val_if_fail (sigma > 0, NULL);
half = n_values / 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]