From becccd432de2061957e8b363b41a6f1ad1c8cafb Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Wed, 1 Aug 2007 11:57:28 +0300 Subject: [PATCH] removes an unused var --- plugins/rotate.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/rotate.c b/plugins/rotate.c index fc4172e..05eb363 100644 --- a/plugins/rotate.c +++ b/plugins/rotate.c @@ -441,15 +441,15 @@ rotatePreparePaintScreen (CompScreen *s, else if ((rs->zoomTranslate != 0.0f || rs->grabbed) && cs->invert == 1 && !cs->unfolded) { - int steps, stepsCount; + int steps; float amount, chunk; amount = msSinceLastPaint * 0.05f * rs->opt[ROTATE_SCREEN_OPTION_SPEED].value.f; - steps = stepsCount = amount / + steps = amount / (0.5f * rs->opt[ROTATE_SCREEN_OPTION_TIMESTEP].value.f); if (!steps) - steps = stepsCount = 1; + steps = 1; chunk = amount / (float) steps; -- 1.5.2.3