Demos (master): glxinfo: minor whitespace fixes

Brian Paul brianp at kemper.freedesktop.org
Tue May 24 14:47:37 UTC 2011


Module: Demos
Branch: master
Commit: 3dd34c1b0a418851b56175b50080c1dc46cd0a71
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=3dd34c1b0a418851b56175b50080c1dc46cd0a71

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 23 13:22:05 2011 -0600

glxinfo: minor whitespace fixes

---

 src/xdemos/glxinfo.c |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c
index 341c55e..e86d8e8 100644
--- a/src/xdemos/glxinfo.c
+++ b/src/xdemos/glxinfo.c
@@ -603,12 +603,15 @@ print_screen_info(Display *dpy, int scrnum, Bool allowDirect, GLboolean limits,
       printf("direct rendering: ");
       if (glXIsDirect(dpy, ctx)) {
          printf("Yes\n");
-      } else {
+      }
+      else {
          if (!allowDirect) {
             printf("No (-i specified)\n");
-         } else if (getenv("LIBGL_ALWAYS_INDIRECT")) {
+         }
+         else if (getenv("LIBGL_ALWAYS_INDIRECT")) {
             printf("No (LIBGL_ALWAYS_INDIRECT set)\n");
-         } else {
+         }
+         else {
             printf("No (If you want to find out why, try setting "
                    "LIBGL_DEBUG=verbose)\n");
          }
@@ -971,11 +974,12 @@ print_visual_attribs_verbose(const struct visual_attribs *attribs,
 			     int fbconfigs)
 {
    if (fbconfigs) {
-   printf("FBConfig ID: %x  Visual ID=%x  depth=%d  class=%s, type=%s\n",
-          attribs->id, attribs->vis_id, attribs->depth,
-	  visual_class_name(attribs->klass),
-	  visual_drawable_type(attribs->drawableType));
-   } else {
+      printf("FBConfig ID: %x  Visual ID=%x  depth=%d  class=%s, type=%s\n",
+             attribs->id, attribs->vis_id, attribs->depth,
+             visual_class_name(attribs->klass),
+             visual_drawable_type(attribs->drawableType));
+   }
+   else {
       printf("Visual ID: %x  depth=%d  class=%s, type=%s\n",
 	     attribs->id, attribs->depth, visual_class_name(attribs->klass),
 	     visual_drawable_type(attribs->drawableType));
@@ -1333,7 +1337,7 @@ main(int argc, char *argv[])
          usage();
          return 0;
       }
-      else if(strcmp(argv[i], "-s") == 0) {
+      else if (strcmp(argv[i], "-s") == 0) {
          singleLine = True;
       }
       else {




More information about the mesa-commit mailing list