summaryrefslogtreecommitdiff
path: root/vcl/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-29 23:16:23 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-30 07:53:41 +0200
commit62f6e67f6b0986208cf1030e265b51f1bf154bc7 (patch)
tree0fdc685284f5ab4777e6582b75511157db4d07c8 /vcl/ios
parentb46eed92ce1e30008e0325e4d9f37dbe3d6624a3 (diff)
IosSalInstance::BlitFrameToBuffer() and RedrawWindows() are unneeded now
Change-Id: I6873461aed7db7b7f06e45556eacb82bcf118aea
Diffstat (limited to 'vcl/ios')
-rw-r--r--vcl/ios/iosinst.cxx49
1 files changed, 0 insertions, 49 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index 905c0b3113e9..97159180d11f 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -40,55 +40,6 @@ public:
virtual bool ErrorTrapPop( bool ) { return false; }
};
-void IosSalInstance::BlitFrameToBuffer(char *pPixelBuffer,
- int nPBWidth, int nPBHeight,
- int nDestX, int nDestY,
- int nDestWidth, int nDestHeight,
- const basebmp::BitmapDeviceSharedPtr& aDev)
-{
- // TODO: Cropping (taking all the parameters into account)
- (void) nPBHeight;
- (void) nDestWidth;
- (void) nDestHeight;
-
- basebmp::RawMemorySharedArray aSrcData = aDev->getBuffer();
- const basegfx::B2IVector aDevSize = aDev->getSize();
- const sal_Int32 nStride = aDev->getScanlineStride();
- const unsigned char *pSrc = aSrcData.get();
-
- if (aDev->getScanlineFormat() != basebmp::Format::THIRTYTWO_BIT_TC_MASK_RGBA)
- {
- SAL_INFO( "vcl.ios", "BlitFrameToBuffer: format is not 32bpp RGBA but " << aDev->getScanlineFormat() );
- return;
- }
-
- for (unsigned int y = 0; y < (unsigned int)aDevSize.getY(); y++)
- {
- const unsigned char *sp( pSrc + nStride * (aDevSize.getY() - 1 - y) );
-
- unsigned char *dp( (unsigned char *)pPixelBuffer +
- nPBWidth * 4 * (y + nDestY) +
- nDestX * 4 );
- memcpy(dp, sp, aDevSize.getX()*4);
- }
-}
-
-void IosSalInstance::RedrawWindows(char *pPixelBuffer,
- int nPBWidth, int nPBHeight,
- int nDestX, int nDestY,
- int nDestWidth, int nDestHeight)
-{
- int i = 0;
- std::list< SalFrame* >::const_iterator it;
- for ( it = getFrames().begin(); it != getFrames().end(); i++, it++ )
- {
- SvpSalFrame *pFrame = static_cast<SvpSalFrame *>(*it);
-
- if (pFrame->IsVisible())
- BlitFrameToBuffer( pPixelBuffer, nPBWidth, nPBHeight, nDestX, nDestY, nDestWidth, nDestHeight, pFrame->getDevice() );
- }
-}
-
void IosSalInstance::damaged( IosSalFrame */* frame */,
const basegfx::B2IBox& rDamageRect )
{