Mercurial > sdl-ios-xcode
diff src/events/SDL_mouse.c @ 2725:6ce6d56b63bf
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 26 Aug 2008 05:57:41 +0000 |
parents | abacf2555bb4 |
children | 76c2fc9696ea |
line wrap: on
line diff
--- 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; }