summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/backbuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/backbuffer.cxx')
-rw-r--r--canvas/source/vcl/backbuffer.cxx21
1 files changed, 4 insertions, 17 deletions
diff --git a/canvas/source/vcl/backbuffer.cxx b/canvas/source/vcl/backbuffer.cxx
index 427f77f12d53..aa45a56e7ab6 100644
--- a/canvas/source/vcl/backbuffer.cxx
+++ b/canvas/source/vcl/backbuffer.cxx
@@ -22,28 +22,15 @@
#include <vcl/svapp.hxx>
#include "backbuffer.hxx"
+#include "impltools.hxx"
namespace vclcanvas
{
- BackBuffer::BackBuffer( const OutputDevice& rRefDevice,
- bool bMonochromeBuffer ) :
- maVDev( VclPtr<VirtualDevice>::Create( rRefDevice,
- bMonochromeBuffer ? DeviceFormat::BITMASK : DeviceFormat::DEFAULT ) )
+ BackBuffer::BackBuffer( const OutputDevice& rRefDevice ) :
+ maVDev( VclPtr<VirtualDevice>::Create( rRefDevice, DeviceFormat::WITHOUT_ALPHA ) )
{
- if( bMonochromeBuffer )
- return;
-
- // #i95645#
-#if defined( MACOSX )
- // use AA on VCLCanvas for Mac
- maVDev->SetAntialiasing( AntialiasingFlags::EnableB2dDraw | maVDev->GetAntialiasing() );
-#else
- // switch off AA for WIN32 and UNIX, the VCLCanvas does not look good with it and
- // is not required to do AA. It would need to be adapted to use it correctly
- // (especially gradient painting). This will need extra work.
- maVDev->SetAntialiasing( maVDev->GetAntialiasing() & ~AntialiasingFlags::EnableB2dDraw);
-#endif
+ tools::SetDefaultDeviceAntiAliasing( maVDev );
}
BackBuffer::~BackBuffer()