projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fb87a8
)
fix out of bounds check.
author
Carsten Haitzler
<raster@rasterman.com>
Mon, 23 May 2011 13:12:35 +0000
(13:12 +0000)
committer
Carsten Haitzler
<raster@rasterman.com>
Mon, 23 May 2011 13:12:35 +0000
(13:12 +0000)
SVN revision: 59628
src/bin/test_flip_page.c
patch
|
blob
|
history
diff --git
a/src/bin/test_flip_page.c
b/src/bin/test_flip_page.c
index
37d6084
..
6718722
100644
(file)
--- a/
src/bin/test_flip_page.c
+++ b/
src/bin/test_flip_page.c
@@
-713,6
+713,8
@@
im_up_cb(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
if (st->y > (st->h / 2)) st->finish = 1;
tm = 1.0 - ((double)st->y / (double)st->h);
}
+ if (tm < 0.01) tm = 0.01;
+ else if (tm > 0.99) tm = 0.99;
if (!st->finish) tm = 1.0 - tm;
tm *= 0.5;
st->anim = ecore_animator_timeline_add(tm, _state_anim, st);