diff options
author | Brian Paul <[email protected]> | 2000-05-08 14:53:57 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-05-08 14:53:57 +0000 |
commit | e691ee275313cc3b76e72f27e3373be06ce681f4 (patch) | |
tree | b8b543f6ced382d587d78f4636c5e8ce28e045ec /progs/xdemos | |
parent | 0665d482d2bafae09cc36ad05fa58e292cfe4ca8 (diff) |
fixed bug in loop over screens
Diffstat (limited to 'progs/xdemos')
-rw-r--r-- | progs/xdemos/glxinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c index ce3a2a6c22a..b2b06f144f4 100644 --- a/progs/xdemos/glxinfo.c +++ b/progs/xdemos/glxinfo.c @@ -1,4 +1,4 @@ -/* $Id: glxinfo.c,v 1.9 2000/05/07 18:07:23 brianp Exp $ */ +/* $Id: glxinfo.c,v 1.10 2000/05/08 14:53:57 brianp Exp $ */ /* * Copyright (C) 1999 Brian Paul All Rights Reserved. @@ -197,7 +197,7 @@ print_screen_info(Display *dpy, int scrnum) const char *gluVersion = (const char *) gluGetString(GLU_VERSION); const char *gluExtensions = (const char *) gluGetString(GLU_EXTENSIONS); printf("display: %s screen:%d\n", DisplayString(dpy), scrnum); - printf("Direct: %d\n", glXIsDirect(dpy, ctx)); + printf("direct rendering: %s\n", glXIsDirect(dpy, ctx) ? "Yes" : "No"); printf("server glx vendor string: %s\n", serverVendor); printf("server glx version string: %s\n", serverVersion); printf("server glx extensions:\n"); @@ -519,9 +519,9 @@ main(int argc, char *argv[]) numScreens = ScreenCount(dpy); for (scrnum = 0; scrnum < numScreens; scrnum++) { - print_screen_info(dpy, 0); + print_screen_info(dpy, scrnum); printf("\n"); - print_visual_info(dpy, 0, mode); + print_visual_info(dpy, scrnum, mode); if (scrnum + 1 < numScreens) printf("\n\n"); } |