X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=progs%2Fdemos%2Fshapes%2Fshapes.c;h=ebac795fcebeb05e2f13b830834d623b393b800b;hb=71b402b58a952aeec8d902edeec8954464f10323;hp=2fe6bb49374f364023dfcca5ddc9ddfb02c44ebe;hpb=e1b6896dfd1e929a3b22d2a3886e6b4d6354feeb;p=freeglut diff --git a/progs/demos/shapes/shapes.c b/progs/demos/shapes/shapes.c index 2fe6bb4..ebac795 100644 --- a/progs/demos/shapes/shapes.c +++ b/progs/demos/shapes/shapes.c @@ -852,10 +852,12 @@ static void special (int key, int x, int y) /* Cuboctahedron can't be shown when in shader mode, skip it */ if (useShader && NUMBEROF (table)-1 == ( unsigned )function_index) + { if (key==GLUT_KEY_PAGE_UP) function_index = 0; else function_index -= 1; + } }