[librsvg/wip/dimensions-api] draw_in_viewport(): Remove unneccessary call to set_matrix()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/dimensions-api] draw_in_viewport(): Remove unneccessary call to set_matrix()
- Date: Sat, 9 Feb 2019 17:49:47 +0000 (UTC)
commit 4789f5f369fbedde33c370d103724b632135ff4d
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Feb 9 11:20:42 2019 -0600
draw_in_viewport(): Remove unneccessary call to set_matrix()
From all callers, this function is being passed the DrawingCtx's
current matrix; there's no need to re-set it from itself.
rsvg_internals/src/viewport.rs | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/rsvg_internals/src/viewport.rs b/rsvg_internals/src/viewport.rs
index 4dec4bae..edcdb8ac 100644
--- a/rsvg_internals/src/viewport.rs
+++ b/rsvg_internals/src/viewport.rs
@@ -40,7 +40,6 @@ pub fn draw_in_viewport(
draw_ctx.with_discrete_layer(node, values, clipping, &mut |dc| {
if let Some(ref clip) = clip_mode {
if *clip == ClipMode::ClipToViewport {
- dc.get_cairo_context().set_matrix(affine);
dc.clip(viewport.x, viewport.y, viewport.width, viewport.height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]