From 9ea129b49259231565d18f965a57c5fefb4ccc7a Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Wed, 25 Aug 2021 22:40:32 +1000 Subject: vcl: partial revert of drawmode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partial revert of commit 0901297902c29c041ae944973b369e8247716893: vcl: create drawmode functions The GetBitmap() function will not work, as it doesn't add metafile actions. I have added a unit test to prevent this from occuring in future. Change-Id: I8c895e813f378f85ee47f85c3f867e20925bae2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121039 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/source/rendercontext/drawmode.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'vcl/source/rendercontext/drawmode.cxx') diff --git a/vcl/source/rendercontext/drawmode.cxx b/vcl/source/rendercontext/drawmode.cxx index 9b2b9236b92a..b1b85d33f52f 100644 --- a/vcl/source/rendercontext/drawmode.cxx +++ b/vcl/source/rendercontext/drawmode.cxx @@ -221,19 +221,6 @@ vcl::Font GetFont(vcl::Font const& rFont, DrawModeFlags nDrawMode, return aFont; } -Bitmap GetBitmap(Bitmap const& rBitmap, DrawModeFlags nDrawMode) -{ - Bitmap aBmp(rBitmap); - - if (nDrawMode & DrawModeFlags::GrayBitmap) - { - if (!aBmp.IsEmpty()) - aBmp.Convert(BmpConversion::N8BitGreys); - } - - return aBmp; -} - BitmapEx GetBitmapEx(BitmapEx const& rBitmapEx, DrawModeFlags nDrawMode) { BitmapEx aBmpEx(rBitmapEx); -- cgit