diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-05-23 23:15:51 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-05-24 08:45:18 +0200 |
commit | 7637547123b00a9b07ef8659bc077be85cba0a89 (patch) | |
tree | 2f9840e414c1263adf53b6b1324f82efcab5ebbd /vcl | |
parent | ccbcaac09f5e0e6c103d57f83aee629b3092c4a0 (diff) |
tdf#74702 vcl: extract IsScreenComp()
Change-Id: Ie35ae8c10eaa66b48c9c79a0356a71ad82ca66e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94720
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/virdev.cxx | 6 |
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; |