diff options
Diffstat (limited to 'slideshow/source/engine/shapes')
-rw-r--r-- | slideshow/source/engine/shapes/gdimtftools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx index 990d9d26caac..c5a215eefbc4 100644 --- a/slideshow/source/engine/shapes/gdimtftools.cxx +++ b/slideshow/source/engine/shapes/gdimtftools.cxx @@ -338,15 +338,15 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames, // extract current aVDev content into a new animation // frame GDIMetaFileSharedPtr pMtf = std::make_shared<GDIMetaFile>(); + Bitmap aAlphaMask = pVDevMask->GetBitmap(aEmptyPoint, aAnimSize); + aAlphaMask.Invert(); // convert from transparency to alpha pMtf->AddAction( new MetaBmpExAction( aEmptyPoint, BitmapEx( pVDev->GetBitmap( aEmptyPoint, aAnimSize ), - pVDevMask->GetBitmap( - aEmptyPoint, - aAnimSize )))); + aAlphaMask))); // setup mtf dimensions and pref map mode (for // simplicity, keep it all in pixel. the metafile |