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
5fb2e79
..
2cfafa1
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-308,6
+308,8
@@
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 = (y - starty);
\r
+ if ( diff < 0 ) diff--;
\r
+ if ( diff > 0 ) diff++;
\r
float scaling;
\r
\r
if ( diff < 0 ) {
\r
UCC
git Repository :: git.ucc.asn.au