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
9e3cb2d
..
fa90a18
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-311,7
+311,7
@@
void motion(int x, int y) {
float scaling;
\r
\r
if ( diff < 0 ) {
\r
float scaling;
\r
\r
if ( diff < 0 ) {
\r
- scaling = (diff -
(float)-height)/(0 - (float)-height
);
\r
+ scaling = (diff -
-((float)height/2))/(0 - -((float)height/2)
);
\r
} else {
\r
scaling = diff;
\r
}
\r
} else {
\r
scaling = diff;
\r
}
\r
@@
-322,6
+322,7
@@
void motion(int x, int y) {
sceneObjs[curObject].scale[2] += scaling;
\r
}
\r
\r
sceneObjs[curObject].scale[2] += scaling;
\r
}
\r
\r
+ starty = y;
\r
startx = x;
\r
break;
\r
\r
startx = x;
\r
break;
\r
\r
UCC
git Repository :: git.ucc.asn.au