diff src/video/x11/SDL_x11window.c @ 2990:502adab079a4

indent
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2009 17:14:27 +0000
parents e4a469d6ddab
children 546c022a9ae5
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Sun Jan 04 17:10:04 2009 +0000
+++ b/src/video/x11/SDL_x11window.c	Sun Jan 04 17:14:27 2009 +0000
@@ -659,22 +659,24 @@
         Uint32 *propdata;
 
         /* Convert the icon to ARGB for modern window managers */
-        SDL_InitFormat(&format, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
+        SDL_InitFormat(&format, 32, 0x00FF0000, 0x0000FF00, 0x000000FF,
+                       0xFF000000);
         surface = SDL_ConvertSurface(icon, &format, 0);
         if (!surface) {
             return;
         }
 
         /* Set the _NET_WM_ICON property */
-        propsize = 2+(icon->w*icon->h);
+        propsize = 2 + (icon->w * icon->h);
         propdata = SDL_malloc(propsize * sizeof(Uint32));
         if (propdata) {
             propdata[0] = icon->w;
             propdata[1] = icon->h;
-            SDL_memcpy(&propdata[2], surface->pixels, surface->h*surface->pitch);
-            XChangeProperty(display, data->window, _NET_WM_ICON, 
-                            XA_CARDINAL, 32, PropModeReplace,
-                            (unsigned char *) propdata, propsize);
+            SDL_memcpy(&propdata[2], surface->pixels,
+                       surface->h * surface->pitch);
+            XChangeProperty(display, data->window, _NET_WM_ICON, XA_CARDINAL,
+                            32, PropModeReplace, (unsigned char *) propdata,
+                            propsize);
         }
         SDL_FreeSurface(surface);
     } else {