[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/opengl

Michael Meeks michael.meeks at collabora.com
Mon Jan 4 02:30:07 PST 2016


 vcl/opengl/gdiimpl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4b5e574703278c942f280b05b27ef99091ca84da
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Sat Jan 2 10:54:40 2016 +0000

    tdf#96858 - opengl - fix off-by-1 in glScissor clipping.
    
    Change-Id: I3085e2d2848e2041c2faadbfce099ce75c62b712
    Reviewed-on: https://gerrit.libreoffice.org/21044
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index e92b6b6..9a40e46 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -332,7 +332,7 @@ void OpenGLSalGraphicsImpl::ImplInitClipRegion()
         if( mbUseScissor )
         {
             Rectangle aRect( maClipRegion.GetBoundRect() );
-            glScissor( aRect.Left(), GetHeight() - aRect.Bottom() - 1, aRect.GetWidth() + 1, aRect.GetHeight() + 1 );
+            glScissor( aRect.Left(), GetHeight() - aRect.Bottom() - 1, aRect.GetWidth(), aRect.GetHeight() );
             CHECK_GL_ERROR();
         }
         else if( !maClipRegion.IsEmpty() )


More information about the Libreoffice-commits mailing list