summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-19 09:33:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-19 13:24:27 +0000
commit1c217968b609de4484388719427366e7ddbc48d0 (patch)
tree6a42e2b4ca57d7ceb0799ec16f963d60ff3cb09a /vcl/headless
parent1e2bcb3177d58e6f446296ae28fcff7f5da9b620 (diff)
always copying the full bitmap, not just a portion of it
Change-Id: Ib3e10d188c3f0d1bde40653d783f98ebfaed423c
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpbmp.cxx3
-rw-r--r--vcl/headless/svpgdi.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index 6ef56848dee4..e0b1afbbf5ed 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -79,8 +79,7 @@ bool SvpSalBitmap::Create( const SalBitmap& rSalBmp )
{
B2IVector aSize = rSrcBmp->getSize();
m_aBitmap = cloneBitmapDevice( aSize, rSrcBmp );
- B2IBox aRect( 0, 0, aSize.getX(), aSize.getY() );
- m_aBitmap->drawBitmap(rSrcBmp, aRect, aRect);
+ m_aBitmap->copyBitmap(rSrcBmp);
}
else
m_aBitmap.reset();
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 390ed8fc03fe..eb96693a0b18 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -130,9 +130,8 @@ namespace
Size aSize = rSourceBitmap.GetSize();
aTmpBmp.Create(aSize, 0, BitmapPalette());
assert(aTmpBmp.GetBitCount() == 32);
- basegfx::B2IBox aRect(0, 0, aSize.Width(), aSize.Height());
const basebmp::BitmapDeviceSharedPtr& rTmpSrc = aTmpBmp.getBitmap();
- rTmpSrc->drawBitmap(rSrcBmp, aRect, aRect);
+ rTmpSrc->copyBitmap(rSrcBmp);
source = SvpSalGraphics::createCairoSurface(rTmpSrc);
}
else