summaryrefslogtreecommitdiffstats
path: root/Smoke/interact.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-09 13:11:49 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-09 13:11:49 (GMT)
commit2f82b925a8d54fccc0ed78ce9c16f1079aed8588 (patch)
tree1b90101f9988fd6f6ee8926add15d4d6b2fdf5cc /Smoke/interact.c
parent54de5aa73a9effad7857f597fba3d6fa99e7f21f (diff)
download2iv35-2f82b925a8d54fccc0ed78ce9c16f1079aed8588.zip
2iv35-2f82b925a8d54fccc0ed78ce9c16f1079aed8588.tar.gz
2iv35-2f82b925a8d54fccc0ed78ce9c16f1079aed8588.tar.bz2
relocated rescale_to_winwith
Diffstat (limited to 'Smoke/interact.c')
-rw-r--r--Smoke/interact.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Smoke/interact.c b/Smoke/interact.c
index 64f6f36..c1a83cc 100644
--- a/Smoke/interact.c
+++ b/Smoke/interact.c
@@ -22,6 +22,12 @@ int prev_rot_my = 0;
int prev_rot_mz = 0;
+
+int rescale_to_winwidth(float value)
+{
+ return round(value *winWidth);
+}
+
void mouse_move(int mx, int my)
{
x_pos += (float)(mx - prev_mov_mx);