Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

indent

  • Loading branch information
slouken committed Aug 26, 2008
1 parent c9ef164 commit a8daaa408c86026c8c173cd6129c3f7d089f89e2
Showing with 7 additions and 7 deletions.
  1. +2 −2 src/events/SDL_mouse.c
  2. +5 −5 src/video/x11/SDL_x11window.c
@@ -117,7 +117,7 @@ SDL_AddMouse(const SDL_Mouse * mouse, int index, char *name, int pressure_max,
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 @@ SDL_SendMouseButton(int id, Uint8 state, Uint8 button)
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;
}
@@ -493,11 +493,11 @@ X11_CreateWindow(_THIS, SDL_Window * window)
#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

0 comments on commit a8daaa4

Please sign in to comment.