summaryrefslogtreecommitdiff
path: root/src/rect.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:21:10 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:21:10 +0200
commit955e5653053af15a7c7732558fa4a4b7dda4099d (patch)
treecb967098b3fb6d9f333f488137f3c12a18d903d1 /src/rect.cpp
parentb220ff78a833f6dbcdb866a17c0d9ce214f3cc5e (diff)
downloadunity-window-decorator-955e5653053af15a7c7732558fa4a4b7dda4099d.tar.gz
unity-window-decorator-955e5653053af15a7c7732558fa4a4b7dda4099d.tar.bz2
Changed unsigned int to int to fix warnings
Diffstat (limited to 'src/rect.cpp')
-rw-r--r--src/rect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rect.cpp b/src/rect.cpp
index ddbc9a8..f024495 100644
--- a/src/rect.cpp
+++ b/src/rect.cpp
@@ -36,7 +36,7 @@ CompRect::CompRect ()
mRegion.extents.y2 = 0;
}
-CompRect::CompRect (int x, int y, unsigned int width, unsigned int height)
+CompRect::CompRect (int x, int y, int width, int height)
{
mRegion.rects = &mRegion.extents;
mRegion.numRects = 1;
@@ -71,8 +71,8 @@ CompRect::region () const
void
CompRect::setGeometry (int x,
int y,
- unsigned int width,
- unsigned int height)
+ int width,
+ int height)
{
mRegion.extents.x1 = x;
mRegion.extents.y1 = y;
@@ -106,13 +106,13 @@ CompRect::setPos (const CompPoint& pos)
}
void
-CompRect::setWidth (unsigned int width)
+CompRect::setWidth (int width)
{
mRegion.extents.x2 = mRegion.extents.x1 + width;
}
void
-CompRect::setHeight (unsigned int height)
+CompRect::setHeight (int height)
{
mRegion.extents.y2 = mRegion.extents.y1 + height;
}
@@ -211,7 +211,7 @@ CompRect::isEmpty () const
return true;
}
-unsigned int
+int
CompRect::area () const
{
if (mRegion.extents.x2 < mRegion.extents.x1)