summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-23 12:04:02 +0200
committerTomaž Vajngerl <quikee@gmail.com>2019-10-24 09:55:07 +0200
commitcdd370dc0ff5b635c29c294238470874f28000f2 (patch)
treedaf49483f79f98f8d0037a8d9ec729d8330f1cb6 /vcl/opengl
parent821079ec987438c13845f253a7dc11627fd2bc23 (diff)
no-op in SalBitmap::ConvertToGreyscale() is also a success
Change-Id: I6bf3378c89c630aee0a890ac2807a31ea040cd52 Reviewed-on: https://gerrit.libreoffice.org/81374 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/salbmp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index f626c207e488..36c34a2b3b92 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -919,7 +919,7 @@ bool OpenGLSalBitmap::ConvertToGreyscale()
// avoid re-converting to 8bits.
if ( mnBits == 8 && maPalette == Bitmap::GetGreyPalette(256) )
- return false;
+ return true;
OpenGLZone aZone;
rtl::Reference<OpenGLContext> xContext = OpenGLContext::getVCLContext();