diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2015-10-12 10:49:26 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-10-20 06:18:18 +0000 |
commit | bcbf852f8cb7ebde5f506d53fdcc837d439be475 (patch) | |
tree | d69143530f61ffd9b43422fcbac4d432fc53d5ae | |
parent | 9e04891b788d8846760277786335028f5a6b71f7 (diff) |
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 <vmiklos@collabora.co.uk>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | vcl/source/gdi/impimage.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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 <image.h> #include <boost/scoped_array.hpp> +#if defined WNT +#include <vcl/opengl/OpenGLHelper.hxx> +#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 ) ); |