indent
authorSam Lantinga <slouken@libsdl.org>
Tue, 26 Aug 2008 05:57:41 +0000
changeset 27256ce6d56b63bf
parent 2724 0e2b65f32298
child 2726 f23ebf1ddac4
indent
src/events/SDL_mouse.c
src/video/x11/SDL_x11window.c
     1.1 --- a/src/events/SDL_mouse.c	Tue Aug 26 05:26:28 2008 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Aug 26 05:57:41 2008 +0000
     1.3 @@ -117,7 +117,7 @@
     1.4      length = 0;
     1.5      length = SDL_strlen(name);
     1.6      SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
     1.7 -    SDL_strlcpy(SDL_mice[index]->name, name, length+1);
     1.8 +    SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
     1.9      SDL_mice[index]->pressure_max = pressure_max;
    1.10      SDL_mice[index]->pressure_min = pressure_min;
    1.11      SDL_mice[index]->cursor_shown = SDL_TRUE;
    1.12 @@ -512,7 +512,7 @@
    1.13          mouse->buttonstate |= SDL_BUTTON(button);
    1.14          break;
    1.15      case SDL_RELEASED:
    1.16 -        if(!(mouse->buttonstate & SDL_BUTTON(button))) {
    1.17 +        if (!(mouse->buttonstate & SDL_BUTTON(button))) {
    1.18              /* Ignore this event, no state change */
    1.19              return 0;
    1.20          }
     2.1 --- a/src/video/x11/SDL_x11window.c	Tue Aug 26 05:26:28 2008 +0000
     2.2 +++ b/src/video/x11/SDL_x11window.c	Tue Aug 26 05:57:41 2008 +0000
     2.3 @@ -493,11 +493,11 @@
     2.4  #else
     2.5      {
     2.6          XSelectInput(data->display, w,
     2.7 -                 (FocusChangeMask | EnterWindowMask | LeaveWindowMask |
     2.8 -                  ExposureMask | ButtonPressMask | ButtonReleaseMask |
     2.9 -                  PointerMotionMask | KeyPressMask | KeyReleaseMask |
    2.10 -                  PropertyChangeMask | StructureNotifyMask |
    2.11 -                  KeymapStateMask));
    2.12 +                     (FocusChangeMask | EnterWindowMask | LeaveWindowMask |
    2.13 +                      ExposureMask | ButtonPressMask | ButtonReleaseMask |
    2.14 +                      PointerMotionMask | KeyPressMask | KeyReleaseMask |
    2.15 +                      PropertyChangeMask | StructureNotifyMask |
    2.16 +                      KeymapStateMask));
    2.17      }
    2.18  #endif
    2.19