summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/controller/clear_selection.sqc9
-rw-r--r--src/controller/exp004processhits.c6
-rw-r--r--src/controller/keyboard.c10
-rw-r--r--src/controller/selection_from_db.sqc6
-rw-r--r--src/model/density_legend_geometry.c20
-rw-r--r--src/model/exp004state.h7
-rw-r--r--src/model/protein_geometry.c2
-rw-r--r--src/view/exp004geometry.c26
-rw-r--r--src/view/exp004init.c3
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':

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.