[librsvg: 1/3] pattern: small cleanup
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/3] pattern: small cleanup
- Date: Sat, 1 Feb 2020 19:45:18 +0000 (UTC)
commit b14406203d783573d5c28530b5ba3125d19eb090
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Jan 31 08:06:40 2020 +0100
pattern: small cleanup
rsvg_internals/src/pattern.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/pattern.rs b/rsvg_internals/src/pattern.rs
index e583437f..8337a073 100644
--- a/rsvg_internals/src/pattern.rs
+++ b/rsvg_internals/src/pattern.rs
@@ -311,7 +311,7 @@ impl AsPaintSource for ResolvedPattern {
let x = r.x0 - vbox.0.x0 * sw;
let y = r.y0 - vbox.0.y0 * sh;
- caffine = Transform::new(sw, 0.0, 0.0, sh, x, y);
+ caffine = Transform::new_scale(sw, sh).pre_translate(x, y);
draw_ctx.push_view_box(vbox.0.width(), vbox.0.height())
} else if content_units == PatternContentUnits(CoordUnits::ObjectBoundingBox) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]