summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 188155f)
raw | patch | inline | side by side (parent: 188155f)
author | speleo3 <speleo3@users.sourceforge.net> | |
Mon, 23 Nov 2009 20:21:00 +0000 (20:21 +0000) | ||
committer | speleo3 <speleo3@users.sourceforge.net> | |
Mon, 23 Nov 2009 20:21:00 +0000 (20:21 +0000) |
src/marker.cpp | patch | blob | history |
diff --git a/src/marker.cpp b/src/marker.cpp
index c66acc1924f3869b67faad8373c2d36167292941..e4c2e0c305633929ea8df52a65a2e748b3250ea7 100644 (file)
--- a/src/marker.cpp
+++ b/src/marker.cpp
}
}
- {
- Geom::Matrix q;
- /* Compose additional transformation from scale and position */
- q[0] = width / vb.width();
- q[1] = 0.0;
- q[2] = 0.0;
- q[3] = height / vb.height();
- q[4] = -vb.min()[Geom::X] * q[0] + x;
- q[5] = -vb.min()[Geom::Y] * q[3] + y;
- /* Append viewbox transformation */
- marker->c2p = q * marker->c2p;
- }
-
- /* Append reference translation */
- /* fixme: lala (Lauris) */
- marker->c2p = Geom::Translate(-marker->refX.computed, -marker->refY.computed) * marker->c2p;
+ // viewbox transformation and reference translation
+ marker->c2p = Geom::Translate(-marker->refX.computed, -marker->refY.computed) *
+ Geom::Scale(width / vb.width(), height / vb.height());
rctx.i2doc = marker->c2p * rctx.i2doc;