From df625731614cf6e5b31e4c822c2cc42d01fd8069 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 09:37:41 +0800 Subject: [PATCH] --- scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene.c b/scene.c index 939594d..b4795f1 100644 --- a/scene.c +++ b/scene.c @@ -311,7 +311,8 @@ void motion(int x, int y) { float scaling; if ( diff < 0 ) { - scaling = (x - -height)/(0 - -height); + scaling = (x - (float)-height)/(0 - (float)-height); + printf("Diff is %f, Scaling by %f on all axii\n", diff, scaling); } else { scaling = diff; } -- 2.20.1