summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@beryl-project.org>2007-06-04 22:50:27 +0200
committerDennis Kasprzyk <onestone@beryl-project.org>2007-06-04 22:50:27 +0200
commit46cf340853c85f4421011157728417ac91099231 (patch)
tree342b8a23bf56d8d64c00c5b9e4f989975b72b1a5 /plugins
parente0f78344cb957a6558e39869a56930ba42bbe0e8 (diff)
Use output->id.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cube.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/cube.c b/plugins/cube.c
index 0513afd4..2af49691 100644
--- a/plugins/cube.c
+++ b/plugins/cube.c
@@ -997,13 +997,11 @@ cubePaintTransformedOutput (CompScreen *s,
int hsize, xMove = 0;
float size;
Bool clear;
- int i, output = 0;
+ int output = 0;
CUBE_SCREEN (s);
- for (i = 0; i < s->nOutputDev; i++)
- if (!memcmp (outputPtr, &s->outputDev[i], sizeof (CompOutput)))
- output = i;
+ output = (outputPtr->id != ~0) ? outputPtr->id : 0;
hsize = s->hsize * cs->nOutput;
size = hsize;