diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-01-07 00:35:54 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-01-07 00:50:05 +0200 |
commit | d9388579475a11054fbe7476b307f8acfcaa04df (patch) | |
tree | 2e6410948ce677803c1835b5fd45489ad1607902 | |
parent | 80acb4482d392ff40c56211c1048514fbda23aa5 (diff) |
Call SetOutputSizePixelScaleOffsetAndBuffer for non-Android
Change-Id: I59febb87f3da3098e1644087b498d9821b5d7047
-rw-r--r-- | toolkit/source/awt/vclxtoolkit.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx index 8879054c8cea..38960e2aa06e 100644 --- a/toolkit/source/awt/vclxtoolkit.cxx +++ b/toolkit/source/awt/vclxtoolkit.cxx @@ -558,12 +558,7 @@ void SAL_CALL VCLXToolkit::disposing() ByteBufferWrapper *bbw = (ByteBufferWrapper *) (intptr_t) addressOfMemoryBufferForSharedArrayWrapper; pV->SetOutputSizePixelScaleOffsetAndBuffer( Size( Width, Height ), Fraction(ScaleNumerator, ScaleDenominator), Point( XOffset, YOffset), basebmp::RawMemorySharedArray( bbw->pointer(), *bbw )); #else - (void) ScaleNumerator; - (void) ScaleDenominator; - (void) XOffset; - (void) YOffset; - OSL_FAIL( "rendering to a pre-allocated buffer not done yet for this OS" ); - pV->SetOutputSizePixel( Size( Width, Height ) ); + pV->SetOutputSizePixelScaleOffsetAndBuffer( Size( Width, Height ), Fraction(ScaleNumerator, ScaleDenominator), Point( XOffset, YOffset), basebmp::RawMemorySharedArray( (sal_uInt8*) (sal_uIntPtr) addressOfMemoryBufferForSharedArrayWrapper )); #endif } else { pV->SetOutputSizePixel( Size( Width, Height ) ); |