27 files changed, 179 insertions, 549 deletions
diff --git a/src/controller/callbacks/keyboard.c b/src/controller/callbacks/keyboard.c index 28bea81..cc917e7 100644 --- a/src/controller/callbacks/keyboard.c +++ b/src/controller/callbacks/keyboard.c @@ -3,6 +3,7 @@ #include "../actions/selection_from_db.h" #include "reshape.h" #include "../../view/state0.h" +#include "../../model/state/pan_info_init.h" #include <GL/glut.h> #define S state0 @@ -42,6 +43,7 @@ keyboard (unsigned char key, int x, int y) /* * Reset the view (unzoom). */ + pan_info_init (&S.pan); S.zoom.active = false; reshape (S.viewport.w, S.viewport.h); glutPostRedisplay (); |