summaryrefslogtreecommitdiff
path: root/shelf.c
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-12-19 02:00:05 +0100
committerKristian Lyngstol <kristian@windu.lyngstol.net>2007-12-19 02:00:05 +0100
commit544626a1d78973d98beb7b3c57147529ba180423 (patch)
tree3f63d211c602b4a9755ec183be67b54bbc4281f8 /shelf.c
parentccd74c19c116b38964d14e4c80f46a2c15090d76 (diff)
downloadshelf-544626a1d78973d98beb7b3c57147529ba180423.tar.gz
shelf-544626a1d78973d98beb7b3c57147529ba180423.tar.bz2
Adjust by multiplying/dividng with the interval, not adding and subtracting
Diffstat (limited to 'shelf.c')
-rw-r--r--shelf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shelf.c b/shelf.c
index ff8a54d..b545994 100644
--- a/shelf.c
+++ b/shelf.c
@@ -116,7 +116,7 @@ shelfInc (CompDisplay *d,
return TRUE;
SHELF_SCREEN (w->screen);
SHELF_WINDOW (w);
- sw->scale += shelfGetInterval(d);
+ sw->scale /= shelfGetInterval(d);
if (sw->scale >= 1.00f)
sw->scale = 1.00f;
shelfShapeInput (w);
@@ -136,7 +136,7 @@ shelfDec (CompDisplay *d,
return TRUE;
SHELF_SCREEN (w->screen);
SHELF_WINDOW (w);
- sw->scale -= shelfGetInterval(d);
+ sw->scale *= shelfGetInterval(d);
if (sw->scale < 0.001f)
sw->scale = 0.001f;
shelfShapeInput (w);