summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/controller/actions/zoom.c2
-rw-r--r--src/controller/callbacks/keyboard.c6
-rw-r--r--src/controller/callbacks/reshape.c3
-rw-r--r--src/model/geometry/density_legend_geometry.c5
-rw-r--r--src/model/state/state.h9
5 files changed, 10 insertions, 15 deletions
diff --git a/src/controller/actions/zoom.c b/src/controller/actions/zoom.c
index d7f4140..b8e54cc 100644
--- a/src/controller/actions/zoom.c
+++ b/src/controller/actions/zoom.c
@@ -57,7 +57,7 @@ zoom (int x1, int y1, int x2, int y2)
S.zoom.coords[2] = fmin (start_position[1], end_position[1]);
S.zoom.coords[3] = fmax (start_position[1], end_position[1]);
- reshape (S.viewport.w, S.viewport.h);
+ reshape (viewport[2], viewport[3]);
glutPostRedisplay ();

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.