summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Gurgel Pinho <eduardo@mad4.Chagas>2008-11-23 18:16:12 -0300
committerEduardo Gurgel Pinho <eduardo@mad4.Chagas>2008-11-23 18:16:12 -0300
commitaa0a20146e93e4a038ea9c2c5f7b9082d6a46b0f (patch)
treee66e95173edfdc66ca46ba17409b738db16eff35
parent1c5750dcd5f7a2943692300b9e7572397c2c7550 (diff)
downloadsmartput-aa0a20146e93e4a038ea9c2c5f7b9082d6a46b0f.tar.gz
smartput-aa0a20146e93e4a038ea9c2c5f7b9082d6a46b0f.tar.bz2
Nothing important
-rw-r--r--smartput.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/smartput.c b/smartput.c
index 6241877..69a60c6 100644
--- a/smartput.c
+++ b/smartput.c
@@ -463,24 +463,24 @@ smartputFindStapleRect (CompWindow *w,
else
rHeight = windowBox.y2 - rYpos;
- int cover_area = 0;
- int cover_rate = 0;
+ int coverArea = 0;
+ int coverRate = 0;
if (rWidth < 0 || rHeight < 0)
{
- cover_area = 0;
- cover_rate = 0;
+ coverArea = 0;
+ coverRate = 0;
}
else
{
- cover_area = rHeight * rWidth;
- cover_rate = ((cover_area*100)/((current.x2-current.x1)*(current.y2-current.y1)));
+ coverArea = rHeight * rWidth;
+ coverRate = ((coverArea*100)/((current.x2-current.x1)*(current.y2-current.y1)));
}
- if ((cover_rate >= 98 && cover_area > maxArea) ||
- cover_rate > maxRate)
+ if ((coverRate >= 98 && coverArea > maxArea) ||
+ coverRate > maxRate)
{
- maxArea = cover_area;
- maxRate = cover_rate;
+ maxArea = coverArea;
+ maxRate = coverRate;
maxBox = current;
}
}
@@ -558,8 +558,8 @@ smartputComputeResize(CompWindow *w,
}
/*
- * * Testing if two windows are on the same viewport
- * */
+ * Testing if two windows are on the same viewport
+ */
static Bool
smartputSameViewport(CompWindow* w1,
@@ -1019,7 +1019,6 @@ smartputDrawRect (CompWindow *w)
{
SMARTPUT_WINDOW (w);
glPushMatrix ();
- glColor4f(0.5,0.5,0.5,0.0);
glBegin (GL_LINE_LOOP);
glVertex2f(spw->targetX - w->input.left ,
spw->targetY - w->input.top);