summaryrefslogtreecommitdiff
path: root/plugins/zoom
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-05 01:16:02 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-05 01:16:02 +0800
commit0813bc61659e212af9df22e30c655fd35f9fbc3d (patch)
tree3ec00a4a294e6843a35daf174a34d482d350b9f1 /plugins/zoom
parentda75fba9478b5fd7461ae31500f95bb21227c412 (diff)
downloadcompiz-with-glib-mainloop-0813bc61659e212af9df22e30c655fd35f9fbc3d.tar.gz
compiz-with-glib-mainloop-0813bc61659e212af9df22e30c655fd35f9fbc3d.tar.bz2
plugins: fix warnings
Diffstat (limited to 'plugins/zoom')
-rw-r--r--plugins/zoom/src/zoom.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/zoom/src/zoom.cpp b/plugins/zoom/src/zoom.cpp
index 290af37..7231342 100644
--- a/plugins/zoom/src/zoom.cpp
+++ b/plugins/zoom/src/zoom.cpp
@@ -156,7 +156,8 @@ ZoomScreen::glPaintOutput (const GLScreenPaintAttrib &sAttrib,
GLMatrix zTransform (transform);
bool status;
- if (output->id () != ~0 && (zoomed & (1 << output->id ())))
+ if ((unsigned int) output->id () != (unsigned int) ~0 &&
+ (zoomed & (1 << (unsigned int) output->id ())))
{
GLTexture::Filter saveFilter;
ZoomBox box;
@@ -186,7 +187,8 @@ ZoomScreen::glPaintOutput (const GLScreenPaintAttrib &sAttrib,
saveFilter = gScreen->filter (SCREEN_TRANS_FILTER);
- if ((zoomOutput != output->id () || !adjust) && scale > 3.9f &&
+ if (((unsigned int) zoomOutput != (unsigned int) output->id () || !adjust) &&
+ scale > 3.9f &&
!optionGetFilterLinear ())
gScreen->setFilter (SCREEN_TRANS_FILTER, GLTexture::Fast);