[Libreoffice-commits] core.git: vcl/workben

Luboš Luňák l.lunak at collabora.com
Mon Jan 26 04:53:49 PST 2015


 vcl/workben/vcldemo.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1854a92340bb46d892d24265d28b9781309c1d6b
Author: Luboš Luňák <l.lunak at collabora.com>
Date:   Thu Dec 18 11:47:28 2014 +0100

    there's no bigger or smaller half
    
    Change-Id: Ida0e92abd806d017d17365fa2ac53b4f7cb2ebad

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 888c7b1..a932c06 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


More information about the Libreoffice-commits mailing list