-rw-r--r-- | src/controller/clear_selection.sqc | 9 | ||||
-rw-r--r-- | src/controller/exp004processhits.c | 6 | ||||
-rw-r--r-- | src/controller/keyboard.c | 10 | ||||
-rw-r--r-- | src/controller/selection_from_db.sqc | 6 | ||||
-rw-r--r-- | src/model/density_legend_geometry.c | 20 | ||||
-rw-r--r-- | src/model/exp004state.h | 7 | ||||
-rw-r--r-- | src/model/protein_geometry.c | 2 | ||||
-rw-r--r-- | src/view/exp004geometry.c | 26 | ||||
-rw-r--r-- | src/view/exp004init.c | 3 |
9 files changed, 59 insertions, 30 deletions
diff --git a/src/controller/keyboard.c b/src/controller/keyboard.c index d817d7c..99a20d0 100644 --- a/src/controller/keyboard.c +++ b/src/controller/keyboard.c @@ -17,6 +17,7 @@ keyboard (unsigned char key, int x, int y) * ESC Pressed. */ clear_selection (); + glutPostRedisplay (); break; case 'g': @@ -26,6 +27,15 @@ keyboard (unsigned char key, int x, int y) * refreshing a buffer in Emacs. */ selection_from_db (); + glutPostRedisplay (); + break; + + case 'l': + /* + * Toggle display of the legend. + */ + S.legend = !S.legend; + glutPostRedisplay (); break; case 'r': |