Turn off antialiasing when rendering window outline borders.
CCBUG: 283398
This commit is contained in:
parent
1876e8fd01
commit
e8addb2596
1 changed files with 7 additions and 0 deletions
|
@ -712,6 +712,10 @@ namespace Oxygen
|
|||
if( configuration().drawTitleOutline() && isActive() )
|
||||
{
|
||||
|
||||
// save old hints and turn off anti-aliasing
|
||||
const QPainter::RenderHints hints( painter->renderHints() );
|
||||
painter->setRenderHint( QPainter::Antialiasing, false );
|
||||
|
||||
// save mask and frame to where
|
||||
// grey window background is to be rendered
|
||||
QRegion mask;
|
||||
|
@ -761,6 +765,9 @@ namespace Oxygen
|
|||
painter->drawLine( rect.topRight()+QPoint(1,0), rect.bottomRight()+QPoint(1, 0) );
|
||||
}
|
||||
|
||||
// restore old hints
|
||||
painter->setRenderHints( hints );
|
||||
|
||||
// in preview mode also adds center square
|
||||
if( isPreview() )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue