diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-16 17:07:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-16 17:15:46 +0100 |
commit | d82d9467ef8b78864b717a468e313eae0c857e94 (patch) | |
tree | 03401580158d149566b36f5011195cd2361f4898 | |
parent | 5633fdbf3507ce6480078f1d0230c740946ff59d (diff) |
Invert Native Widget rendering in Y.
Change-Id: I65a0bef7e817c82285a0e053846798f02e8d7fc8
-rw-r--r-- | vcl/opengl/x11/gdiimpl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx index 46a22cea0424..5292038fcc9e 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 ); |