diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-13 15:11:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-16 09:25:50 +0000 |
commit | 7dd6b261853ad53207fe5c367f98c4db1dfd54dc (patch) | |
tree | 076e35af0001bac6f1590ed77df5f0618a0740df /include/vcl/virdev.hxx | |
parent | 8569c6d0ad70c32a08774fa6f5ec25b465ea98ee (diff) |
use cairo-compatible top-down direction virtual devices everywhere
that way we can use cairo to text render etc onto our basebmp-backed
headless/gtk3 virtual devices
Change-Id: I91002b610b72a4fe1d2094a57c5cb1b6b5d69cb1
Reviewed-on: https://gerrit.libreoffice.org/19957
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/virdev.hxx')
-rw-r--r-- | include/vcl/virdev.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx index b5d99cb3cbc0..740b9bf7db24 100644 --- a/include/vcl/virdev.hxx +++ b/include/vcl/virdev.hxx @@ -44,12 +44,10 @@ private: SAL_DLLPRIVATE void ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, sal_uInt16 nBitCount, const SystemGraphicsData *pData = nullptr ); SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase, - const basebmp::RawMemorySharedArray &pBuffer, - const bool bTopDown ); + const basebmp::RawMemorySharedArray &pBuffer ); SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, const basebmp::RawMemorySharedArray &pBuffer, - const basebmp::RawMemorySharedArray &pAlphaBuffer, - const bool bTopDown ); + const basebmp::RawMemorySharedArray &pAlphaBuffer ); VirtualDevice (const VirtualDevice &) = delete; VirtualDevice & operator= (const VirtualDevice &) = delete; @@ -127,8 +125,8 @@ public: const Fraction& rScale, const Point& rNewOffset, const basebmp::RawMemorySharedArray &pBuffer, - const basebmp::RawMemorySharedArray &pAlphaBuffer, - const bool bTopDown = false ); + const basebmp::RawMemorySharedArray &pAlphaBuffer ); + bool SetOutputSize( const Size& rNewSize, bool bErase = true ) { return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); } |