projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eb2cd3
)
press 0,1,2,etc keys for specific bias values
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 11 Feb 2008 16:46:10 +0000
(09:46 -0700)
committer
Ben Skeggs
<skeggsb@gmail.com>
Fri, 15 Feb 2008 02:51:11 +0000
(13:51 +1100)
progs/demos/lodbias.c
patch
|
blob
|
history
diff --git
a/progs/demos/lodbias.c
b/progs/demos/lodbias.c
index a4db22e26e43484a27819659278fb495ef143273..c5a2a1b457315f99530692e4d1781d781ae4df47 100644
(file)
--- a/
progs/demos/lodbias.c
+++ b/
progs/demos/lodbias.c
@@
-159,6
+159,18
@@
static void Key( unsigned char key, int x, int y )
case 'B':
Bias += 10;
break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ Bias = 100.0 * (key - '0');
+ break;
case 27:
exit(0);
break;