[librsvg/librsvg-2.46] turbolence: remove identity conversion
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.46] turbolence: remove identity conversion
- Date: Tue, 15 Oct 2019 16:45:52 +0000 (UTC)
commit 3d18fd18d160ae29516de5e4e3dca793e323a311
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:25:08 2019 +0200
turbolence: remove identity conversion
rsvg_internals/src/filters/turbulence.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/filters/turbulence.rs b/rsvg_internals/src/filters/turbulence.rs
index f491dc41..8e5743ad 100644
--- a/rsvg_internals/src/filters/turbulence.rs
+++ b/rsvg_internals/src/filters/turbulence.rs
@@ -256,8 +256,8 @@ impl NoiseGenerator {
let b10 = self.lattice_selector[j + by0];
let b01 = self.lattice_selector[i + by1];
let b11 = self.lattice_selector[j + by1];
- let sx = f64::from(s_curve(rx0));
- let sy = f64::from(s_curve(ry0));
+ let sx = s_curve(rx0);
+ let sy = s_curve(ry0);
let q = self.gradient[color_channel][b00];
let u = rx0 * q[0] + ry0 * q[1];
let q = self.gradient[color_channel][b10];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]