[Libreoffice-commits] core.git: vcl/opengl vcl/workben

Michael Meeks michael.meeks at collabora.com
Mon Nov 10 13:25:00 PST 2014


 vcl/opengl/gdiimpl.cxx  |    2 +-
 vcl/workben/vcldemo.cxx |    5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 290943d20551a8504efe10f6f954aa16995bf95a
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Mon Nov 10 21:24:13 2014 +0000

    vcl: opengl - alpha masks are unexpectedly inverted.
    
    Change-Id: I5ebcd47e10df671bc60492bc80fc26a60f07306d

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index ca5a975..11e7d55 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -450,7 +450,7 @@ void OpenGLSalGraphicsImpl::DrawTextureWithMask( GLuint nTexture, GLuint nMask,
     glBindTexture( GL_TEXTURE_2D, nMask );
 
     glEnable( GL_BLEND );
-    glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
+    glBlendFunc( GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA );
     DrawTextureRect( rSize, pPosAry );
     glDisable( GL_BLEND );
 
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 1142e37..cd3e32e 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -27,7 +27,6 @@
 
 #if 0
 #  define FIXME_SELF_INTERSECTING_WORKING
-#  define FIXME_DRAW_BITMAPEX
 #endif
 
 using namespace css;
@@ -273,11 +272,7 @@ public:
         for (size_t i = 0; i < maIcons.size(); i++)
         {
             Size aSize(maIcons[i].GetSizePixel());
-#ifdef FIXME_DRAW_BITMAPEX
             rDev.DrawBitmapEx(p.TopLeft(), maIcons[i]);
-#else
-            rDev.DrawBitmap(p.TopLeft(), maIcons[i].GetBitmap());
-#endif
             p.Move(aSize.Width(), 0);
             if (p.Left() >= r.Right())
                 break;


More information about the Libreoffice-commits mailing list