Kaydet (Commit) 2191a110 authored tarafından Caolán McNamara's avatar Caolán McNamara

last arg of SetOutputSizePixelScaleOffsetAndBuffer no longer used

Change-Id: I65e7e82e46c5751617b00a39df47d864b29b6ce1
Reviewed-on: https://gerrit.libreoffice.org/20441Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst bc45215e
...@@ -904,11 +904,9 @@ void doc_paintTile (LibreOfficeKitDocument* pThis, ...@@ -904,11 +904,9 @@ void doc_paintTile (LibreOfficeKitDocument* pThis,
boost::shared_array< sal_uInt8 > aBuffer( pBuffer, NoDelete< sal_uInt8 >() ); boost::shared_array< sal_uInt8 > aBuffer( pBuffer, NoDelete< sal_uInt8 >() );
boost::shared_array<sal_uInt8> aAlphaBuffer;
pDevice->SetOutputSizePixelScaleOffsetAndBuffer( pDevice->SetOutputSizePixelScaleOffsetAndBuffer(
Size(nCanvasWidth, nCanvasHeight), Fraction(1.0), Point(), Size(nCanvasWidth, nCanvasHeight), Fraction(1.0), Point(),
aBuffer, aAlphaBuffer); aBuffer);
pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
nTilePosX, nTilePosY, nTileWidth, nTileHeight); nTilePosX, nTilePosY, nTileWidth, nTileHeight);
...@@ -1554,7 +1552,7 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/, ...@@ -1554,7 +1552,7 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/,
aDevice->SetBackground(Wallpaper(COL_TRANSPARENT)); aDevice->SetBackground(Wallpaper(COL_TRANSPARENT));
aDevice->SetOutputSizePixelScaleOffsetAndBuffer( aDevice->SetOutputSizePixelScaleOffsetAndBuffer(
Size(nFontWidth, nFontHeight), Fraction(1.0), Point(), Size(nFontWidth, nFontHeight), Fraction(1.0), Point(),
aBuffer, nullptr); aBuffer);
aDevice->DrawText(Point(0,0), aFontName); aDevice->DrawText(Point(0,0), aFontName);
return pBuffer; return pBuffer;
......
...@@ -48,8 +48,7 @@ private: ...@@ -48,8 +48,7 @@ private:
SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase, SAL_DLLPRIVATE bool InnerImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
const basebmp::RawMemorySharedArray &pBuffer ); const basebmp::RawMemorySharedArray &pBuffer );
SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, SAL_DLLPRIVATE bool ImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
const basebmp::RawMemorySharedArray &pBuffer, const basebmp::RawMemorySharedArray &pBuffer );
const basebmp::RawMemorySharedArray &pAlphaBuffer );
VirtualDevice (const VirtualDevice &) = delete; VirtualDevice (const VirtualDevice &) = delete;
VirtualDevice & operator= (const VirtualDevice &) = delete; VirtualDevice & operator= (const VirtualDevice &) = delete;
...@@ -127,8 +126,7 @@ public: ...@@ -127,8 +126,7 @@ public:
bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize, bool SetOutputSizePixelScaleOffsetAndBuffer( const Size& rNewSize,
const Fraction& rScale, const Fraction& rScale,
const Point& rNewOffset, const Point& rNewOffset,
const basebmp::RawMemorySharedArray &pBuffer, const basebmp::RawMemorySharedArray &pBuffer );
const basebmp::RawMemorySharedArray &pAlphaBuffer );
bool SetOutputSize( const Size& rNewSize, bool bErase = true ) bool SetOutputSize( const Size& rNewSize, bool bErase = true )
{ return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); } { return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); }
......
...@@ -394,8 +394,7 @@ void VirtualDevice::ImplFillOpaqueRectangle( const Rectangle& rRect ) ...@@ -394,8 +394,7 @@ void VirtualDevice::ImplFillOpaqueRectangle( const Rectangle& rRect )
} }
bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
const basebmp::RawMemorySharedArray &pBuffer, const basebmp::RawMemorySharedArray &pBuffer )
const basebmp::RawMemorySharedArray &pAlphaBuffer )
{ {
if( InnerImplSetOutputSizePixel(rNewSize, bErase, pBuffer) ) if( InnerImplSetOutputSizePixel(rNewSize, bErase, pBuffer) )
{ {
...@@ -411,7 +410,7 @@ bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, ...@@ -411,7 +410,7 @@ bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase,
{ {
mpAlphaVDev = VclPtr<VirtualDevice>::Create(*this, meAlphaFormat); mpAlphaVDev = VclPtr<VirtualDevice>::Create(*this, meAlphaFormat);
mpAlphaVDev->InnerImplSetOutputSizePixel(rNewSize, bErase, mpAlphaVDev->InnerImplSetOutputSizePixel(rNewSize, bErase,
pAlphaBuffer); basebmp::RawMemorySharedArray());
} }
// TODO: copy full outdev state to new one, here. Also needed in outdev2.cxx:DrawOutDev // TODO: copy full outdev state to new one, here. Also needed in outdev2.cxx:DrawOutDev
...@@ -444,16 +443,13 @@ void VirtualDevice::EnableRTL( bool bEnable ) ...@@ -444,16 +443,13 @@ void VirtualDevice::EnableRTL( bool bEnable )
bool VirtualDevice::SetOutputSizePixel( const Size& rNewSize, bool bErase ) bool VirtualDevice::SetOutputSizePixel( const Size& rNewSize, bool bErase )
{ {
return ImplSetOutputSizePixel( rNewSize, bErase, basebmp::RawMemorySharedArray(), basebmp::RawMemorySharedArray()); return ImplSetOutputSizePixel(rNewSize, bErase, basebmp::RawMemorySharedArray());
} }
bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer( bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(
const Size& rNewSize, const Fraction& rScale, const Point& rNewOffset, const Size& rNewSize, const Fraction& rScale, const Point& rNewOffset,
const basebmp::RawMemorySharedArray &pBuffer, const basebmp::RawMemorySharedArray &pAlphaBuffer ) const basebmp::RawMemorySharedArray &pBuffer )
{ {
if (pAlphaBuffer)
meAlphaFormat = DeviceFormat::DEFAULT;
if (pBuffer) { if (pBuffer) {
MapMode mm = GetMapMode(); MapMode mm = GetMapMode();
mm.SetOrigin( rNewOffset ); mm.SetOrigin( rNewOffset );
...@@ -461,7 +457,7 @@ bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer( ...@@ -461,7 +457,7 @@ bool VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(
mm.SetScaleY( rScale ); mm.SetScaleY( rScale );
SetMapMode( mm ); SetMapMode( mm );
} }
return ImplSetOutputSizePixel( rNewSize, true, pBuffer, pAlphaBuffer ); return ImplSetOutputSizePixel(rNewSize, true, pBuffer);
} }
void VirtualDevice::SetReferenceDevice( RefDevMode i_eRefDevMode ) void VirtualDevice::SetReferenceDevice( RefDevMode i_eRefDevMode )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment