indent
authorSam Lantinga <slouken@libsdl.org>
Tue, 26 Aug 2008 05:57:41 +0000
changeset 2725 6ce6d56b63bf
parent 2724 0e2b65f32298
child 2726 f23ebf1ddac4
indent
src/events/SDL_mouse.c
src/video/x11/SDL_x11window.c
--- a/src/events/SDL_mouse.c	Tue Aug 26 05:26:28 2008 +0000
+++ b/src/events/SDL_mouse.c	Tue Aug 26 05:57:41 2008 +0000
@@ -117,7 +117,7 @@
     length = 0;
     length = SDL_strlen(name);
     SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
-    SDL_strlcpy(SDL_mice[index]->name, name, length+1);
+    SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
     SDL_mice[index]->pressure_max = pressure_max;
     SDL_mice[index]->pressure_min = pressure_min;
     SDL_mice[index]->cursor_shown = SDL_TRUE;
@@ -512,7 +512,7 @@
         mouse->buttonstate |= SDL_BUTTON(button);
         break;
     case SDL_RELEASED:
-        if(!(mouse->buttonstate & SDL_BUTTON(button))) {
+        if (!(mouse->buttonstate & SDL_BUTTON(button))) {
             /* Ignore this event, no state change */
             return 0;
         }
--- a/src/video/x11/SDL_x11window.c	Tue Aug 26 05:26:28 2008 +0000
+++ b/src/video/x11/SDL_x11window.c	Tue Aug 26 05:57:41 2008 +0000
@@ -493,11 +493,11 @@
 #else
     {
         XSelectInput(data->display, w,
-                 (FocusChangeMask | EnterWindowMask | LeaveWindowMask |
-                  ExposureMask | ButtonPressMask | ButtonReleaseMask |
-                  PointerMotionMask | KeyPressMask | KeyReleaseMask |
-                  PropertyChangeMask | StructureNotifyMask |
-                  KeymapStateMask));
+                     (FocusChangeMask | EnterWindowMask | LeaveWindowMask |
+                      ExposureMask | ButtonPressMask | ButtonReleaseMask |
+                      PointerMotionMask | KeyPressMask | KeyReleaseMask |
+                      PropertyChangeMask | StructureNotifyMask |
+                      KeymapStateMask));
     }
 #endif