diff options
author | Jeremie Knuesel <jeremie.knusel@sensefly.com> | 2014-04-11 12:03:26 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2018-05-04 14:49:29 +0300 |
commit | 088acb70e969f8ece8986cf2ab0c2f4ac1379f48 (patch) | |
tree | 72d14e2efe706f1cb59ea1c6e30126f5d6e57310 | |
parent | 1967da1ffcf04eddbc250c65d6f6efce4b77fe4b (diff) |
openglsurfacepainter.cpp: remove '+1' for right and bottom in QRECT_TO_GLMATRIX
The '+1' calculation is wrong now that QRectF is used instead of QRect.
https://bugzilla.gnome.org/show_bug.cgi?id=740326
-rw-r--r-- | elements/gstqtvideosink/painters/openglsurfacepainter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elements/gstqtvideosink/painters/openglsurfacepainter.cpp b/elements/gstqtvideosink/painters/openglsurfacepainter.cpp index c9f2a77..51afab2 100644 --- a/elements/gstqtvideosink/painters/openglsurfacepainter.cpp +++ b/elements/gstqtvideosink/painters/openglsurfacepainter.cpp @@ -37,10 +37,10 @@ #define QRECT_TO_GLMATRIX(rect) \ { \ - GLfloat(rect.left()) , GLfloat(rect.bottom() + 1), \ - GLfloat(rect.right() + 1), GLfloat(rect.bottom() + 1), \ + GLfloat(rect.left()) , GLfloat(rect.bottom()), \ + GLfloat(rect.right()), GLfloat(rect.bottom()), \ GLfloat(rect.left()) , GLfloat(rect.top()), \ - GLfloat(rect.right() + 1), GLfloat(rect.top()) \ + GLfloat(rect.right()), GLfloat(rect.top()) \ } OpenGLSurfacePainter::OpenGLSurfacePainter() |