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

New commits:
commit ee9dd6c086f7bda615d5b28d3319a83ce1673607
Author: Herbert Dürr <h...@apache.org>
Date:   Mon Jun 2 11:47:23 2014 +0000

    #i125020# fix rounding error in AquaSalGraphics::RefreshRect()
    
    Rounding left and width down can accumulate a rounding error of almost two 
in
    the calculation of right. The existing code compensates for this by 
increasing
    the width by two, but since left has been decremented by one to accommodate 
for
    antialiasing artifacts this compensation is one to few by itself and two to 
few
    when accounting for antialiasing artifacts on the right. Y-pos and height 
have
    the same problems and get the matching fix.
    
    (cherry picked from commit 073ec69fb970830d39c8700317ee74dbbdfd1fda)

diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index c251203..639398f 100644
--- a/vcl/quartz/salgdiutils.cxx
+++ b/vcl/quartz/salgdiutils.cxx
@@ -184,8 +184,8 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float 
lWidth, float lHeigh
         // this helps with antialiased rendering
         const Rectangle aVclRect(Point(static_cast<long int>(lX-1),
                     static_cast<long int>(lY-1) ),
-                 Size(  static_cast<long int>(lWidth+2),
-                    static_cast<long int>(lHeight+2) ) );
+                 Size(  static_cast<long int>(lWidth+3),
+                    static_cast<long int>(lHeight+3) ) );
         mpFrame->maInvalidRect.Union( aVclRect );
     }
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to