summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-18 18:17:52 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-20 14:03:37 -0500
commitac40f13eebde508cce14b67d59dd36c2c18ccf7b (patch)
treeb7d566b7fa39fc94b5a61d700f7a8cb7b70e866e /svtools
parent4e4cc5834bddac62a26ebbf4fb3ea45dde5b79e0 (diff)
fdo#73487: Better pixelization of lines for on-screen rendering.
Conflicts: drawinglayer/source/processor2d/vclpixelprocessor2d.cxx drawinglayer/source/processor2d/vclpixelprocessor2d.hxx Change-Id: I95d087a1f4841bfb7f665bcfebecd4c22c817958
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 67336bda9ca8..ab78c4b3a826 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -638,6 +638,13 @@ namespace svtools
return aPattern;
}
+ std::vector<double> GetLineDashing( sal_uInt16 nDashing, double fScale )
+ {
+ std::vector<double> aPattern = GetDashing(nDashing);
+ std::for_each(aPattern.begin(), aPattern.end(), ApplyScale(fScale));
+ return aPattern;
+ }
+
basegfx::B2DPolyPolygon ApplyLineDashing( const basegfx::B2DPolygon& rPolygon, sal_uInt16 nDashing, double fScale )
{
std::vector<double> aPattern = GetDashing(nDashing);