[Libreoffice-commits] core.git: Branch 'feature/opengl-vcl2' - vcl/opengl

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Nov 16 08:15:38 PST 2014


 vcl/opengl/x11/gdiimpl.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d82d9467ef8b78864b717a468e313eae0c857e94
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Nov 16 17:07:15 2014 +0100

    Invert Native Widget rendering in Y.
    
    Change-Id: I65a0bef7e817c82285a0e053846798f02e8d7fc8

diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index 46a22ce..5292038 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -133,9 +133,9 @@ bool X11OpenGLSalGraphicsImpl::RenderPixmapToScreen( X11Pixmap* pPixmap, int nX,
     SAL_INFO( "vcl.opengl", "RenderPixmapToScreen (" << nX << " " << nY << ")" );
 
     aPosAry.mnSrcX = 0;
-    aPosAry.mnSrcY = nY;
+    aPosAry.mnSrcY = 0;
     aPosAry.mnDestX = nX;
-    aPosAry.mnDestY = 0;
+    aPosAry.mnDestY = nY;
     aPosAry.mnSrcWidth = aPosAry.mnDestWidth = pPixmap->GetWidth();
     aPosAry.mnSrcHeight = aPosAry.mnDestHeight = pPixmap->GetHeight();
 
@@ -153,7 +153,7 @@ bool X11OpenGLSalGraphicsImpl::RenderPixmapToScreen( X11Pixmap* pPixmap, int nX,
     //TODO: lfrb: glXGetProc to get the functions
     glXBindTexImageEXT( pDisplay, pGlxPixmap, GLX_FRONT_LEFT_EXT, NULL );
 
-    DrawTexture( aTexture, aPosAry, !bInverted );
+    DrawTexture( aTexture, aPosAry, bInverted );
 
     glXReleaseTexImageEXT( pDisplay, pGlxPixmap, GLX_FRONT_LEFT_EXT );
     glXDestroyPixmap( pDisplay, pGlxPixmap );


More information about the Libreoffice-commits mailing list