summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2013-03-07 13:31:34 +0100
committerRadek Doulik <rodo@novell.com>2013-03-07 13:37:27 +0100
commit46e53913e9dcc84ffed8fb5f1b4959c70c7e5649 (patch)
tree46216990b43f6d930300bdcadc5b58b12651d73d /vcl/source
parentcd2c3e72a73fd4b91f913d8e19693d4deb35b0c4 (diff)
fix canvas bitmap rendering (argb32 pixmaps) fixes color issue in n#780830
Change-Id: I5242bbb171ba21da43e535255b7e9dd73c1d4930
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/gdimtf.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index bf19753b1f15..a561d64814eb 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -496,20 +496,16 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
}
SalBitmap* pSalBmp = ImplGetSVData()->mpDefInst->CreateSalBitmap();
- SalBitmap* pSalMask = ImplGetSVData()->mpDefInst->CreateSalBitmap();
+ pSalBmp->SetHasAlpha( true );
- if( pSalBmp->Create( xBitmapCanvas, aSize ) && pSalMask->Create( xBitmapCanvas, aSize, true ) )
+ if( pSalBmp->Create( xBitmapCanvas, aSize ) )
{
Bitmap aBitmap( pSalBmp );
- Bitmap aMask( pSalMask );
- AlphaMask aAlphaMask( aMask );
- BitmapEx aBitmapEx( aBitmap, aAlphaMask );
- pOut->DrawBitmapEx( rPos, aBitmapEx );
+ pOut->DrawBitmap( rPos, aBitmap );
return true;
}
delete pSalBmp;
- delete pSalMask;
}
}
}