mesa: redraw upon keypress in trivial/tri.c
This commit is contained in:
parent
8d6ef125ac
commit
d422c1eb5c
|
@ -56,15 +56,13 @@ static void Reshape(int width, int height)
|
||||||
|
|
||||||
static void Key(unsigned char key, int x, int y)
|
static void Key(unsigned char key, int x, int y)
|
||||||
{
|
{
|
||||||
|
switch (key) {
|
||||||
switch (key) {
|
case 27:
|
||||||
case 27:
|
exit(0);
|
||||||
exit(0);
|
default:
|
||||||
default:
|
glutPostRedisplay();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
glutPostRedisplay();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Draw(void)
|
static void Draw(void)
|
||||||
|
|
Loading…
Reference in New Issue