#i125020# allow antialiasing on all update borders for Aqua graphics
(cherry picked from commit 513225be9cbadee6d8f7fd4e9910e10fc5ff571b)
This commit is contained in:
parent
33b4cd4f8e
commit
bcc7086ebf
1 changed files with 5 additions and 2 deletions
|
@ -182,10 +182,13 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth, float lHeigh
|
||||||
{
|
{
|
||||||
// update a little more around the designated rectangle
|
// update a little more around the designated rectangle
|
||||||
// this helps with antialiased rendering
|
// 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),
|
const Rectangle aVclRect(Point(static_cast<long int>(lX-1),
|
||||||
static_cast<long int>(lY-1) ),
|
static_cast<long int>(lY-1) ),
|
||||||
Size( static_cast<long int>(lWidth+3),
|
Size( static_cast<long int>(lWidth+4),
|
||||||
static_cast<long int>(lHeight+3) ) );
|
static_cast<long int>(lHeight+4) ) );
|
||||||
mpFrame->maInvalidRect.Union( aVclRect );
|
mpFrame->maInvalidRect.Union( aVclRect );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue