diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 14:50:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 21:29:01 +0200 |
commit | 31bd8c4a4a4752dcff12ee35636193f79a6d6137 (patch) | |
tree | 7c8e8305622db175afc115dffae92d9df1192f28 /sfx2 | |
parent | 9e8c6c81f2f5d3df850353ee92a5b6e52546d6c6 (diff) |
no need to use AlphaMask in RecentDocsViewItem
since it's purely opaque
Change-Id: Id9df52f860946cfd4c30c406d5748224a2a4f4df
Reviewed-on: https://gerrit.libreoffice.org/75226
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 85d84ddc699d..908a679a5629 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -91,8 +91,7 @@ RecentDocsViewItem::RecentDocsViewItem(sfx2::RecentDocsView &rView, const OUStri } // create empty, and copy the default thumbnail in - sal_uInt8 nAlpha = 255; - aThumbnail = BitmapEx(Bitmap(aThumbnailSize, 24), AlphaMask(aThumbnailSize, &nAlpha)); + aThumbnail = BitmapEx(aThumbnailSize, 24); aThumbnail.CopyPixel( ::tools::Rectangle(Point((aThumbnailSize.Width() - aExtSize.Width()) / 2, (aThumbnailSize.Height() - aExtSize.Height()) / 2), aExtSize), |