summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2012-01-30 09:53:25 +0100
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-02-12 13:25:37 +0100
commit9d14a50e1fe167e0c7e24cbb933e758d999b809f (patch)
treecb64e8edcc439bb86e21765627405571514c2f67 /src
parent20f10e77329651204d6c1152f45f5555f0c3ccf4 (diff)
Surface::isInverted Dont use xor and move the ret variable
outside the ifdef Change-Id: I6f9048cd7d5992ef46dcc0e9d05e86f2f7ca4033 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/compositor/wayland_wrapper/wlsurface.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp
index 223a350c4..92acac0c2 100644
--- a/src/compositor/wayland_wrapper/wlsurface.cpp
+++ b/src/compositor/wayland_wrapper/wlsurface.cpp
@@ -428,11 +428,10 @@ WaylandSurface::Type Surface::type() const
bool Surface::isYInverted() const
{
+ bool ret = false;
#ifdef QT_COMPOSITOR_WAYLAND_GL
Q_D(const Surface);
- bool ret = false;
-
static bool negateReturn = qgetenv("QT_COMPOSITOR_NEGATE_INVERTED_Y").toInt();
if (!d->surfaceBuffer) {
@@ -443,7 +442,7 @@ bool Surface::isYInverted() const
#endif
ret = true;
- return ret^negateReturn;
+ return ret != negateReturn;
}
bool Surface::visible() const