Skip to content

Commit

Permalink
wall: Remove unused calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianLyng committed Nov 15, 2014
1 parent fd7a85c commit 06d4a8e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/wall.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,6 @@ wallPaintTransformedOutput (CompScreen *s,
CompTransform sTransform = *transform;
float xTranslate, yTranslate;
float px, py;
int tx, ty;
Bool movingX, movingY;

if (clear)
Expand All @@ -1559,14 +1558,12 @@ wallPaintTransformedOutput (CompScreen *s,

if (movingY)
{
ty = ceil (py) - s->y;
yTranslate = fmod (py, 1) - 1;

matrixTranslate (&sTransform, 0.0f, yTranslate, 0.0f);

if (movingX)
{
tx = ceil (px) - s->x;
xTranslate = 1 - fmod (px, 1);

setWindowPaintOffset (s, (s->x - ceil(px)) * s->width,
Expand All @@ -1580,7 +1577,6 @@ wallPaintTransformedOutput (CompScreen *s,
matrixTranslate (&sTransform, -xTranslate, 0.0f, 0.0f);
}

tx = floor (px) - s->x;
xTranslate = -fmod (px, 1);

setWindowPaintOffset (s, (s->x - floor(px)) * s->width,
Expand All @@ -1593,14 +1589,12 @@ wallPaintTransformedOutput (CompScreen *s,
matrixTranslate (&sTransform, -xTranslate, -yTranslate, 0.0f);
}

ty = floor (py) - s->y;
yTranslate = fmod (py, 1);

matrixTranslate (&sTransform, 0.0f, yTranslate, 0.0f);

if (movingX)
{
tx = ceil (px) - s->x;
xTranslate = 1 - fmod (px, 1);

setWindowPaintOffset (s, (s->x - ceil(px)) * s->width,
Expand All @@ -1614,7 +1608,6 @@ wallPaintTransformedOutput (CompScreen *s,
matrixTranslate (&sTransform, -xTranslate, 0.0f, 0.0f);
}

tx = floor (px) - s->x;
xTranslate = -fmod (px, 1);

setWindowPaintOffset (s, (s->x - floor(px)) * s->width,
Expand Down

0 comments on commit 06d4a8e

Please sign in to comment.