git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f4da2e
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 02:27:12 +0000
(10:27 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 02:27:12 +0000
(10:27 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
ba115c3
..
b684583
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-308,7
+308,7
@@
void motion(int x, int y) {
\r
// For big/small scaling, we map negative numbers to 0->1 and positive numbers to 1->inf
\r
float diff = (x - startx);
\r
- float scaling = ( diff + (float)height
/2 ) / ( (float)height/2 ) * bigsmallFactor
;
\r
+ float scaling = ( diff + (float)height
) / ( (float)height )
;
\r
\r
sceneObjs[curObject].scale[0] *= scaling;
\r
sceneObjs[curObject].scale[1] *= scaling;
\r
UCC
git Repository :: git.ucc.asn.au