summaryrefslogtreecommitdiffstats
path: root/include/vcl/virdev.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-11 16:20:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-11 20:44:26 +0000
commitf95b0743da4239e047db8638c61f90f8bbe54306 (patch)
treeab0f0a4cf2fa995c34da5403a55a105691a00c34 /include/vcl/virdev.hxx
parentDOCX export: handle <w:autoHyphenation/> (diff)
downloadcore-f95b0743da4239e047db8638c61f90f8bbe54306.tar.gz
core-f95b0743da4239e047db8638c61f90f8bbe54306.zip
Related: fdo#87242 init VirtualDevice with size of surface
otherwise vcl's clipping doesn't work quite right when the render text with vcl apis fallback is used. Manually forced in my case, but it should happen in practice with vertical text, so if there is a bug about vertical text not appearing in slideshows then this is part of the fix for that. Windows and Mac remain unchanged as initialized with 1, 1. If the same problem affects those platforms then they'll need to be adjusted to remember their height/widths from the ctor and those values plugged in here instead Change-Id: I2f82f0db0cf446d7db21f0a7ee4f8c15c7ebdb42
Diffstat (limited to 'include/vcl/virdev.hxx')
-rw-r--r--include/vcl/virdev.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/virdev.hxx b/include/vcl/virdev.hxx
index 624cb2f0f31a..b6361bfbec87 100644
--- a/include/vcl/virdev.hxx
+++ b/include/vcl/virdev.hxx
@@ -116,7 +116,8 @@ public:
Any rendering will happen directly on the context and not on any intermediate bitmap.
Note: This might not be supported on all platforms !
*/
- explicit VirtualDevice( const SystemGraphicsData *pData, sal_uInt16 nBitCount );
+ explicit VirtualDevice(const SystemGraphicsData *pData, const Size &rSize,
+ sal_uInt16 nBitCount);
virtual ~VirtualDevice();