diff options
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/tunnel2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/demos/tunnel2.c b/progs/demos/tunnel2.c index 048cd6d..436f01b 100644 --- a/progs/demos/tunnel2.c +++ b/progs/demos/tunnel2.c @@ -31,7 +31,7 @@ static int fullscreen = 1; #endif #ifdef FX -GLboolean fxMesaSelectCurrentBoard(int); +GLint fxMesaSelectCurrentBoard(int); #endif static int WIDTHC0 = 640; @@ -549,7 +549,7 @@ main(int ac, char **av) glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); #ifdef FX - if (!fxMesaSelectCurrentBoard(0)) { + if (fxMesaSelectCurrentBoard(0) < 0) { fprintf(stderr, "The first Voodoo Graphics board is missing !?!?\n"); return -1; } @@ -568,7 +568,7 @@ main(int ac, char **av) glutSpecialFunc(special); #ifdef FX - if (!fxMesaSelectCurrentBoard(1)) { + if (fxMesaSelectCurrentBoard(1) < 0) { fprintf(stderr, "The second Voodoo Graphics board is missing !\n"); exit(-1); } |