-rw-r--r-- | src/controller/actions/zoom.c | 2 | ||||
-rw-r--r-- | src/controller/callbacks/keyboard.c | 6 | ||||
-rw-r--r-- | src/controller/callbacks/reshape.c | 3 | ||||
-rw-r--r-- | src/model/geometry/density_legend_geometry.c | 5 | ||||
-rw-r--r-- | src/model/state/state.h | 9 |
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; |