From bcbf852f8cb7ebde5f506d53fdcc837d439be475 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 12 Oct 2015 10:49:26 +0200 Subject: tdf#94384 fix black icons with OpenGL enabled on Windows Windows specific code in ImplUpdateDisplayBmp causes the black icons when OpenGL is enabled. This change disables this code path. (cherry picked from commit c97ca26f2d5790d46b712813c15bb6731f0232b0) Change-Id: I3ae1a0ceb947254aaadbc3d772f0d662b291b594 Reviewed-on: https://gerrit.libreoffice.org/19367 Reviewed-by: Miklos Vajna Reviewed-by: Jan Holesovsky Reviewed-by: Adolfo Jayme Barrientos Tested-by: Adolfo Jayme Barrientos --- vcl/source/gdi/impimage.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx index 8ea787e605fd..4acbc6236476 100644 --- a/vcl/source/gdi/impimage.cxx +++ b/vcl/source/gdi/impimage.cxx @@ -29,6 +29,10 @@ #include #include +#if defined WNT +#include +#endif + #define IMPSYSIMAGEITEM_MASK ( 0x01 ) #define IMPSYSIMAGEITEM_ALPHA ( 0x02 ) @@ -336,7 +340,7 @@ pOutDev if( !mpDisplayBmp && !maBmpEx.IsEmpty() ) { #if defined WNT - if( !maBmpEx.IsAlpha() ) + if( !maBmpEx.IsAlpha() && !OpenGLHelper::isVCLOpenGLEnabled()) { // FIXME: this looks like rather an obsolete code-path to me. const Bitmap aBmp( maBmpEx.GetBitmap().CreateDisplayBitmap( pOutDev ) ); -- cgit