summaryrefslogtreecommitdiff
path: root/vcl/source/rendercontext/drawmode.cxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2021-08-25 22:40:32 +1000
committerTomaž Vajngerl <quikee@gmail.com>2021-08-26 02:16:11 +0200
commit9ea129b49259231565d18f965a57c5fefb4ccc7a (patch)
tree1fa31853f9f8b2bba6c4cb401b83e14bcbe8fd54 /vcl/source/rendercontext/drawmode.cxx
parente73c3942de474004b04c1d538c89354183d44ae9 (diff)
vcl: partial revert of drawmode
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 <quikee@gmail.com>
Diffstat (limited to 'vcl/source/rendercontext/drawmode.cxx')
-rw-r--r--vcl/source/rendercontext/drawmode.cxx13
1 files changed, 0 insertions, 13 deletions
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);