summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-26 13:41:56 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-26 13:41:56 +0100
commitb78c3208f36be644ec3ca434a78f0d4003ac4e9d (patch)
tree33b61ea279e936bb0ecc18d55aba1a6e18bd222f
parent59b40d28ba90928b4ac0b553e49012948fe0c6c9 (diff)
downloadcubeaddon-b78c3208f36be644ec3ca434a78f0d4003ac4e9d.tar.gz
cubeaddon-b78c3208f36be644ec3ca434a78f0d4003ac4e9d.tar.bz2
Fixed broken visibility calculation.
-rw-r--r--src/cubeaddon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cubeaddon.cpp b/src/cubeaddon.cpp
index 757206f..0b8bd8e 100644
--- a/src/cubeaddon.cpp
+++ b/src/cubeaddon.cpp
@@ -796,11 +796,11 @@ CubeaddonWindow::glDraw (const GLMatrix &transform,
}
x1 = window->x () - window->output ().left + offset.x ();
- x2 = window->x () + window->width () + window->output ().right + offset.y ();
+ x2 = window->x () + window->width () + window->output ().right + offset.x ();
if (x1 < 0 && x2 < 0)
- return FALSE;
+ return false;
if (x1 > screen->width () && x2 > screen->width ())
- return FALSE;
+ return false;
}
return gWindow->glDraw (transform, attrib, region, mask);