[vlc-commits] Qt: operator priority

Jean-Baptiste Kempf git at videolan.org
Sat May 14 13:49:12 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 14 13:36:06 2011 +0200| [1a7e7c83879b1f755bfa42b49ec1dffdf0002524] | committer: Jean-Baptiste Kempf

Qt: operator priority

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a7e7c83879b1f755bfa42b49ec1dffdf0002524
---

 modules/gui/qt4/util/pictureflow.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/util/pictureflow.cpp b/modules/gui/qt4/util/pictureflow.cpp
index c856314..fc22981 100644
--- a/modules/gui/qt4/util/pictureflow.cpp
+++ b/modules/gui/qt4/util/pictureflow.cpp
@@ -699,7 +699,7 @@ QRect PictureFlowSoftwareRenderer::renderSlide(const SlideInfo &slide, int col1,
     PFreal ys = slide.cy - state->slideWidth * sdy / 2;
     PFreal dist = distance * PFREAL_ONE;
 
-    int xi = qMax((PFreal)0, (w * PFREAL_ONE / 2) + fdiv(xs * h, dist + ys) >> PFREAL_SHIFT);
+    int xi = qMax((PFreal)0, ((w * PFREAL_ONE / 2) + fdiv(xs * h, dist + ys)) >> PFREAL_SHIFT);
     if (xi >= w)
     {
         return rect;



More information about the vlc-commits mailing list