summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/virdev.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 0eeab8b8dd44..1bb163cda06e 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -158,15 +158,11 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
}
mnOutWidth = nDX;
mnOutHeight = nDY;
- mbScreenComp = true;
if (meFormat == DeviceFormat::BITMASK)
SetAntialiasing( AntialiasingFlags::DisableText );
- if ( pOutDev->GetOutDevType() == OUTDEV_PRINTER )
- mbScreenComp = false;
- else if ( pOutDev->IsVirtual() )
- mbScreenComp = static_cast<const VirtualDevice*>(pOutDev)->mbScreenComp;
+ mbScreenComp = pOutDev->IsScreenComp();
mbDevOutput = true;
mxFontCollection = pSVData->maGDIData.mxScreenFontList;