diff options
author | Herbert Dürr <hdu@apache.org> | 2014-06-02 11:54:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-03 09:46:15 +0100 |
commit | bcc7086ebf447449489edef2adc3b158a0198cff (patch) | |
tree | b880d7ecb764460ae79e2ec1500fef6e71636631 /vcl | |
parent | 33b4cd4f8e7ac42e206f13b565868a89d946957a (diff) |
#i125020# allow antialiasing on all update borders for Aqua graphics
(cherry picked from commit 513225be9cbadee6d8f7fd4e9910e10fc5ff571b)
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salgdiutils.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx index 639398fd6ef4..704fef56f9ce 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 ); } } |