fixed a printf format specifier (was %i instead of %lu while printing an unsigned...
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 11 Oct 2014 17:20:19 +0000 (17:20 +0000)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 11 Oct 2014 17:20:19 +0000 (17:20 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1708 7f0cb862-5218-0410-a997-914c9d46530a

src/x11/fg_window_x11.c

index a512b02..40be052 100644 (file)
@@ -352,17 +352,17 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
 
     XSetWMProtocols( fgDisplay.pDisplay.Display, window->Window.Handle,
                      &fgDisplay.pDisplay.DeleteWindow, 1 );
-                     
+
     if (!isSubWindow && !window->IsMenu &&
         ((fgState.DisplayMode & GLUT_BORDERLESS) || (fgState.DisplayMode & GLUT_CAPTIONLESS)))
     {
-        /* _MOTIF_WM_HINTS is replaced by _NET_WM_WINDOW_TYPE, but that property does not allow precise 
+        /* _MOTIF_WM_HINTS is replaced by _NET_WM_WINDOW_TYPE, but that property does not allow precise
          * control over the visual style of the window, which is what we are trying to achieve here.
          * Stick with Motif and hope for the best... */
         MotifWmHints hints = {0};
         hints.flags = MWM_HINTS_DECORATIONS;
         hints.decorations = (fgState.DisplayMode & GLUT_CAPTIONLESS) ? MWM_DECOR_BORDER:0;
-        printf("%i\n",hints.decorations);
+        printf("%lu\n", hints.decorations);
 
         XChangeProperty(fgDisplay.pDisplay.Display, window->Window.Handle,
                         XInternAtom( fgDisplay.pDisplay.Display, "_MOTIF_WM_HINTS", False ),
@@ -370,7 +370,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
                         PropModeReplace,
                         (unsigned char*) &hints,
                         sizeof(MotifWmHints) / sizeof(long));
-        }
+    }
 
 
     if (fgDisplay.pDisplay.NetWMSupported