X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=progs%2Fdemos%2Fshapes%2Fshapes.c;fp=progs%2Fdemos%2Fshapes%2Fshapes.c;h=ebac795fcebeb05e2f13b830834d623b393b800b;hb=8f7014249e5f2b352569c7b22aa190125aeef9ab;hp=2fe6bb49374f364023dfcca5ddc9ddfb02c44ebe;hpb=108280c6d8ec2f11b6151bda3118ff17d801b2d7;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; + } }