Author: hdu
Date: Mon Jun  2 11:54:15 2014
New Revision: 1599174

URL: http://svn.apache.org/r1599174
Log:
#i125020# allow antialiasing on all update borders for Aqua graphics

Modified:
    openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx

Modified: openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx?rev=1599174&r1=1599173&r2=1599174&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx (original)
+++ openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx Mon Jun  2 
11:54:15 2014
@@ -243,10 +243,13 @@ void AquaSalGraphics::RefreshRect(float 
     {
         // 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 );
     }
 }


Reply via email to