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:
9d65248
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 08:35:33 +0000
(16:35 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 08:35:33 +0000
(16:35 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
c41dafb
..
aabad99
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-279,6
+279,7
@@
void motion(int x, int y) {
sceneObjs[curObject].rotation.x += diffx * rotateFactor;
\r
\r
// h: texture scale
\r
+ // **NOTE: Seems to be problem with scaling, delayed action
\r
float max = (float)height/texscaleFactor;
\r
float scaling = (-diffy + max) / max;
\r
sceneObjs[curObject].texture.scale *= scaling;
\r
UCC
git Repository :: git.ucc.asn.au