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

Herbert Dürr hdu at apache.org
Tue Jun 3 01:47:42 PDT 2014


 vcl/quartz/salgdiutils.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit bcc7086ebf447449489edef2adc3b158a0198cff
Author: Herbert Dürr <hdu at apache.org>
Date:   Mon Jun 2 11:54:15 2014 +0000

    #i125020# allow antialiasing on all update borders for Aqua graphics
    
    (cherry picked from commit 513225be9cbadee6d8f7fd4e9910e10fc5ff571b)

diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index 639398f..704fef5 100644
--- a/vcl/quartz/salgdiutils.cxx
+++ b/vcl/quartz/salgdiutils.cxx
@@ -182,10 +182,13 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth, float lHeigh
     {
         // update a little more around the designated rectangle
         // this helps with antialiased rendering
+        // Rounding down x and width can accumulate a rounding error of up to 2
+        // The decrementing of x, the rounding error and the antialiasing border
+        // require that the width and the height need to be increased by four
         const Rectangle aVclRect(Point(static_cast<long int>(lX-1),
                     static_cast<long int>(lY-1) ),
-                 Size(  static_cast<long int>(lWidth+3),
-                    static_cast<long int>(lHeight+3) ) );
+                 Size(  static_cast<long int>(lWidth+4),
+                    static_cast<long int>(lHeight+4) ) );
         mpFrame->maInvalidRect.Union( aVclRect );
     }
 }


More information about the Libreoffice-commits mailing list