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 @@ | |||
3 | #include "../actions/selection_from_db.h" | 3 | #include "../actions/selection_from_db.h" |
4 | #include "reshape.h" | 4 | #include "reshape.h" |
5 | #include "../../view/state0.h" | 5 | #include "../../view/state0.h" |
6 | #include "../../model/state/pan_info_init.h" | ||
6 | #include <GL/glut.h> | 7 | #include <GL/glut.h> |
7 | 8 | ||
8 | #define S state0 | 9 | #define S state0 |
@@ -42,6 +43,7 @@ keyboard (unsigned char key, int x, int y) | |||
42 | /* | 43 | /* |
43 | * Reset the view (unzoom). | 44 | * Reset the view (unzoom). |
44 | */ | 45 | */ |
46 | pan_info_init (&S.pan); | ||
45 | S.zoom.active = false; | 47 | S.zoom.active = false; |
46 | reshape (S.viewport.w, S.viewport.h); | 48 | reshape (S.viewport.w, S.viewport.h); |
47 | glutPostRedisplay (); | 49 | glutPostRedisplay (); |