diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2010-02-05 12:23:58 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2010-02-05 12:23:58 +0800 |
commit | 3680d5ce42b8bb2ebb31a4ab30824b3411fc19c1 (patch) | |
tree | 8c9494305b809a85d7afbca3bc94db2d8fd2abb5 /src | |
parent | 3dafe828a30de2c56488beb8e7dc14e7d8f3a2e6 (diff) | |
download | stackswitch-3680d5ce42b8bb2ebb31a4ab30824b3411fc19c1.tar.gz stackswitch-3680d5ce42b8bb2ebb31a4ab30824b3411fc19c1.tar.bz2 |
Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/stackswitch.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stackswitch.cpp b/src/stackswitch.cpp index 34cc3c8..a313b18 100644 --- a/src/stackswitch.cpp +++ b/src/stackswitch.cpp @@ -495,13 +495,13 @@ StackswitchWindow::compareStackswitchWindowDepth (StackswitchDrawSlot *a1, bool StackswitchScreen::layoutThumbs () { - int index; + unsigned int index; int ww, wh; float xScale, yScale; int ox1, ox2, oy1, oy2; float swi = 0.0, oh, rh, ow; - int cols, rows, col = 0, row = 0, r, c; - int cindex, ci, gap, hasActive = 0; + unsigned int cols, rows, col = 0, row = 0, r, c; + unsigned int cindex, ci, gap, hasActive = 0; bool exit; if ((mState == StateNone) || (mState == StateIn)) @@ -901,10 +901,11 @@ StackswitchScreen::glPaintOutput (const GLScreenPaintAttrib &attrib, status = gScreen->glPaintOutput (attrib, sTransform, region, output, mask); - if (mState != StateNone && (output->id () == ~0 || + if (mState != StateNone && + ((unsigned int) output->id () == (unsigned int) ~0 || screen->outputDevs ().at (screen->currentOutputDev ().id ()) == *output)) { - int i; + unsigned int i; CompWindow *aw = NULL; sTransform.toScreenSpace (output, -DEFAULT_Z_CAMERA); |