trivial/tri_viewport: add space==reset key
authorKeith Whitwell <keithw@vmware.com>
Mon, 20 Apr 2009 16:32:15 +0000 (17:32 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 21 Apr 2009 10:13:15 +0000 (11:13 +0100)
progs/trivial/tri-viewport.c

index c08089b9dd7a50634cbd7146705ccd3dcbce206f..37e424467b91bdd25c8e61878f858de8b95a9c1a 100644 (file)
@@ -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;
    }