diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-04-20 17:32:15 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-04-21 11:13:15 +0100 |
commit | a38f7d9e689f0e12cb8eed6b96a140805b452ba1 (patch) | |
tree | 3d2e50a407624b438af36a2f32f9a1e678368270 /progs/trivial | |
parent | 6bfcffa79e8b7999e8193e721e07dbb3de4a1658 (diff) |
trivial/tri_viewport: add space==reset key
Diffstat (limited to 'progs/trivial')
-rw-r--r-- | progs/trivial/tri-viewport.c | 4 |
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; } |