summaryrefslogtreecommitdiff
path: root/progs/trivial
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-04-20 17:32:15 +0100
committerKeith Whitwell <keithw@vmware.com>2009-04-21 11:13:15 +0100
commita38f7d9e689f0e12cb8eed6b96a140805b452ba1 (patch)
tree3d2e50a407624b438af36a2f32f9a1e678368270 /progs/trivial
parent6bfcffa79e8b7999e8193e721e07dbb3de4a1658 (diff)
trivial/tri_viewport: add space==reset key
Diffstat (limited to 'progs/trivial')
-rw-r--r--progs/trivial/tri-viewport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/trivial/tri-viewport.c b/progs/trivial/tri-viewport.c
index c08089b9dd..37e424467b 100644
--- a/progs/trivial/tri-viewport.c
+++ b/progs/trivial/tri-viewport.c
@@ -72,7 +72,9 @@ static void Key(unsigned char key, int x, int y)
case 'H':
th -= 1.0;
break;
-
+ case ' ':
+ tw = th = tx = ty = 0;
+ break;
default:
break;
}