diff src/video/x11/SDL_x11mouse.c @ 2942:1e431c2631ee

indent
author Sam Lantinga <slouken@libsdl.org>
date Thu, 01 Jan 2009 08:21:19 +0000
parents b93965a16fe0
children 79dee7da6ba5
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c	Thu Jan 01 08:19:56 2009 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Thu Jan 01 08:21:19 2009 +0000
@@ -26,9 +26,9 @@
 
 #if SDL_VIDEO_DRIVER_X11_XINPUT
 static void
-X11_FreeMouse(SDL_Mouse *mouse)
+X11_FreeMouse(SDL_Mouse * mouse)
 {
-    X11_MouseData *data = (X11_MouseData *)mouse->driverdata;
+    X11_MouseData *data = (X11_MouseData *) mouse->driverdata;
 
     if (data) {
         XCloseDevice(data->display, mouse->id);
@@ -73,7 +73,7 @@
                 if (deviceClass->class == ValuatorClass) {      /* bingo ;) */
                     XValuatorInfo *valInfo;
 
-                    data = (X11_MouseData *)SDL_calloc(1, sizeof(*data));
+                    data = (X11_MouseData *) SDL_calloc(1, sizeof(*data));
                     if (!data) {
                         continue;
                     }
@@ -120,11 +120,11 @@
                     valInfo = (XValuatorInfo *) deviceClass;
                     /* if the device reports pressure, lets check it parameteres */
                     if (valInfo->num_axes > 2) {
-                            SDL_AddMouse(&mouse, DevList[i].name,
-                                         valInfo->axes[2].max_value,
-                                         valInfo->axes[2].min_value, 1);
+                        SDL_AddMouse(&mouse, DevList[i].name,
+                                     valInfo->axes[2].max_value,
+                                     valInfo->axes[2].min_value, 1);
                     } else {
-                            SDL_AddMouse(&mouse, DevList[i].name, 0, 0, 1);
+                        SDL_AddMouse(&mouse, DevList[i].name, 0, 0, 1);
                     }
                     break;
                 }