summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-12-18 11:47:28 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-01-28 14:10:18 +0000
commitdb684961b9cfc97d4151c9bee0e58e4f6c9672f3 (patch)
tree42bbf0678cdff1391f0d9691e9167c24cddade8c /vcl
parent9452c709785eb759923167c24e3e72d88b38f029 (diff)
there's no bigger or smaller half
Change-Id: Ida0e92abd806d017d17365fa2ac53b4f7cb2ebad Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/vcldemo.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 67bc81803953..8eea87831636 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -251,6 +251,10 @@ public:
};
for (size_t i = 0; i < aRegions.size(); i++)
{
+ // Half of them not-anti-aliased ..
+ if (i >= aRegions.size()/2)
+ rDev.SetAntialiasing(nOldAA);
+
static const struct {
double nX, nY;
} aPoints[] = {
@@ -265,10 +269,6 @@ public:
aSub.Top() + aSub.GetHeight() * aPoints[j].nY));
}
rDev.DrawPolyLine(aPoly, aLineWidths[i], eJoins[i], eLineCaps[i]);
-
- // Half of them not-anti-aliased ..
- if (i > aRegions.size()/2)
- rDev.SetAntialiasing(nOldAA);
}
}
else