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/callbacks/keyboard.c b/src/controller/callbacks/keyboard.c
index cc917e7..9967ad3 100644
--- a/src/controller/callbacks/keyboard.c
+++ b/src/controller/callbacks/keyboard.c
@@ -45,7 +45,11 @@ keyboard (unsigned char key, int x, int y)
*/
pan_info_init (&S.pan);
S.zoom.active = false;
- reshape (S.viewport.w, S.viewport.h);
+
+ GLint viewport[4];
+ glGetIntegerv (GL_VIEWPORT, viewport);
+ reshape (viewport[2], viewport[3]);
+
glutPostRedisplay ();
break;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.