[librsvg] marker.rs: Start directly with the state's current transformation, not an identity
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] marker.rs: Start directly with the state's current transformation, not an identity
- Date: Thu, 28 Sep 2017 22:40:16 +0000 (UTC)
commit dab8c13002ed27eab6245dcac992435a3cd962a0
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Sep 27 19:10:16 2017 -0500
marker.rs: Start directly with the state's current transformation, not an identity
rust/src/marker.rs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index f6f4ae9..9b1b11f 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -22,6 +22,7 @@ use property_bag;
use property_bag::*;
use util::*;
use viewbox::*;
+use viewport::draw_in_viewport;
// markerUnits attribute: https://www.w3.org/TR/SVG/painting.html#MarkerElement
@@ -121,11 +122,9 @@ impl NodeMarker {
let marker_width = self.width.get ().normalize (draw_ctx);
let marker_height = self.height.get ().normalize (draw_ctx);
- let mut affine = cairo::Matrix::identity ();
+ let mut affine = drawing_ctx::get_current_state_affine (draw_ctx);
affine.translate (xpos, ypos);
- affine = cairo::Matrix::multiply (&affine, &drawing_ctx::get_current_state_affine (draw_ctx));
-
let rotation = match self.orient.get () {
MarkerOrient::Auto => computed_angle,
MarkerOrient::Degrees (d) => d * PI / 180.0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]