#i125020# allow antialiasing on all update borders for Aqua graphics

(cherry picked from commit 513225be9cbadee6d8f7fd4e9910e10fc5ff571b)
This commit is contained in:
Herbert Dürr 2014-06-02 11:54:15 +00:00 committed by Caolán McNamara
parent 33b4cd4f8e
commit bcc7086ebf

View file

@ -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 );
}
}