diff options
author | Radek Doulik <rodo@novell.com> | 2013-03-07 13:31:34 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2013-03-07 13:37:27 +0100 |
commit | 46e53913e9dcc84ffed8fb5f1b4959c70c7e5649 (patch) | |
tree | 46216990b43f6d930300bdcadc5b58b12651d73d /vcl/source | |
parent | cd2c3e72a73fd4b91f913d8e19693d4deb35b0c4 (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.cxx | 10 |
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; } } } |