summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--Makefile.am17
-rw-r--r--src/controller/actions/pan.c23
-rw-r--r--src/controller/actions/set_ortho.c5
-rw-r--r--src/controller/actions/zoom.c8
-rw-r--r--src/controller/callbacks/keyboard.c2
-rw-r--r--src/controller/callbacks/mouse.c30
-rw-r--r--src/controller/callbacks/mouse_motion.c2
-rw-r--r--src/controller/callbacks/mouse_wheel.c8
-rw-r--r--src/controller/callbacks/reshape.c26
-rw-r--r--src/model/geometry/map_geometry.c10
-rw-r--r--src/model/state/pan_info_init.h2
-rw-r--r--src/model/state/zoom_info_init.c2
12 files changed, 70 insertions, 65 deletions
diff --git a/src/controller/actions/zoom.c b/src/controller/actions/zoom.c
index 7209e85..53da49b 100644
--- a/src/controller/actions/zoom.c
+++ b/src/controller/actions/zoom.c
@@ -14,7 +14,7 @@ void
zoom (double x1, double y1, double x2, double y2)
{
S.zoom.active = true;
-
+
S.zoom.coords[0] = x1;
S.zoom.coords[1] = x2;
S.zoom.coords[2] = y1;
@@ -30,7 +30,7 @@ zoom (double x1, double y1, double x2, double y2)
*/
double width = S.zoom.coords[1] - S.zoom.coords[0];
double height = S.zoom.coords[3] - S.zoom.coords[2];
- double difference = fabs(width - height);
+ double difference = fabs (width - height);
if (width > height)
{
@@ -46,8 +46,8 @@ zoom (double x1, double y1, double x2, double y2)
GLint viewport[4];
glGetIntegerv (GL_VIEWPORT, viewport);
reshape (viewport[2], viewport[3]);
-
+
glutPostRedisplay ();
-
+
return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.