git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
scene.c
diff --git
a/scene.c
b/scene.c
index
b684583
..
6cf7cf5
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
\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
) / ( (float)height
);
\r
+ float scaling = ( diff + (float)height
/bigsmallFactor ) / ( (float)height/bigsmallFactor
);
\r
\r
sceneObjs[curObject].scale[0] *= scaling;
\r
sceneObjs[curObject].scale[1] *= scaling;
\r
\r
sceneObjs[curObject].scale[0] *= scaling;
\r
sceneObjs[curObject].scale[1] *= scaling;
\r
UCC
git Repository :: git.ucc.asn.au