summaryrefslogtreecommitdiff
path: root/main_glut.c
diff options
context:
space:
mode:
Diffstat (limited to 'main_glut.c')
-rw-r--r--main_glut.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/main_glut.c b/main_glut.c
index ed4eee5..1717898 100644
--- a/main_glut.c
+++ b/main_glut.c
@@ -4,7 +4,7 @@
#include "ray.h"
-static int threaded;
+static int threaded = 1;
static int viewport_width, viewport_height;
static int
@@ -54,11 +54,9 @@ keyboard(unsigned char key, int x, int y) {
case 27:
exit(EXIT_SUCCESS);
break;
+
case 't':
- if(threaded)
- threaded = 0;
- else
- threaded = 1;
+ threaded = !threaded;
break;
}
}