diff src/video/directfb/SDL_DirectFB_events.c @ 3013:8cc00819c8d6

Reverted Bob's indent checkin
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jan 2009 21:50:26 +0000
parents 8f4ed5ec2b06
children d72a0dd80e8b
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_events.c	Sat Jan 10 18:32:24 2009 +0000
+++ b/src/video/directfb/SDL_DirectFB_events.c	Sat Jan 10 21:50:26 2009 +0000
@@ -60,9 +60,8 @@
     int ret;
 
     if (dispdata->vidIDinuse)
-        SDL_DFB_CHECKERR(dispdata->
-                         vidlayer->SwitchContext(dispdata->vidlayer,
-                                                 DFB_TRUE));
+        SDL_DFB_CHECKERR(dispdata->vidlayer->
+                         SwitchContext(dispdata->vidlayer, DFB_TRUE));
 
   error:
     return;
@@ -149,8 +148,8 @@
                         SDL_SendMouseMotion(devdata->mouse_id[0], 0, evt.cx,
                                             evt.cy, 0);
                         SDL_SendMouseButton(devdata->mouse_id[0], SDL_PRESSED,
-                                            DirectFB_TranslateButton
-                                            (evt.button));
+                                            DirectFB_TranslateButton(evt.
+                                                                     button));
                     } else {
                         MotionAllMice(_this, evt.x, evt.y);
                     }
@@ -161,8 +160,8 @@
                                             evt.cy, 0);
                         SDL_SendMouseButton(devdata->mouse_id[0],
                                             SDL_RELEASED,
-                                            DirectFB_TranslateButton
-                                            (evt.button));
+                                            DirectFB_TranslateButton(evt.
+                                                                     button));
                     } else {
                         MotionAllMice(_this, evt.x, evt.y);
                     }
@@ -522,7 +521,6 @@
 
     return keysym;
 }
-
 static int
 DirectFB_TranslateButton(DFBInputDeviceButtonIdentifier button)
 {
@@ -604,19 +602,18 @@
     devdata->num_keyboard = 0;
     if (devdata->use_linux_input) {
         sys_ids = 0;
-        SDL_DFB_CHECK(devdata->
-                      dfb->EnumInputDevices(devdata->dfb, EnumKeyboards,
-                                            devdata));
+        SDL_DFB_CHECK(devdata->dfb->
+                      EnumInputDevices(devdata->dfb, EnumKeyboards, devdata));
         if (devdata->num_keyboard == 0) {
             sys_ids = 1;
-            SDL_DFB_CHECK(devdata->
-                          dfb->EnumInputDevices(devdata->dfb, EnumKeyboards,
-                                                devdata));
+            SDL_DFB_CHECK(devdata->dfb->
+                          EnumInputDevices(devdata->dfb, EnumKeyboards,
+                                           devdata));
         }
     } else {
-        SDL_DFB_CHECK(devdata->
-                      dfb->EnumInputDevices(devdata->dfb, input_device_cb,
-                                            devdata));
+        SDL_DFB_CHECK(devdata->dfb->
+                      EnumInputDevices(devdata->dfb, input_device_cb,
+                                       devdata));
     }
 }
 
@@ -653,25 +650,33 @@
             switch (evt.type) {
             case DIET_BUTTONPRESS:
                 posted += SDL_PrivateMouseButton(SDL_PRESSED,
-                                                 DirectFB_TranslateButton
-                                                 (evt.button), 0, 0);
+                                                 DirectFB_TranslateButton(evt.
+                                                                          button),
+                                                 0, 0);
                 break;
             case DIET_BUTTONRELEASE:
                 posted += SDL_PrivateMouseButton(SDL_RELEASED,
-                                                 DirectFB_TranslateButton
-                                                 (evt.button), 0, 0);
+                                                 DirectFB_TranslateButton(evt.
+                                                                          button),
+                                                 0, 0);
                 break;
             case DIET_KEYPRESS:
                 posted += SDL_PrivateKeyboard(SDL_PRESSED,
-                                              DirectFB_TranslateKey
-                                              (evt.key_id, evt.key_symbol,
-                                               mod, &keysym));
+                                              DirectFB_TranslateKey(evt.
+                                                                    key_id,
+                                                                    evt.
+                                                                    key_symbol,
+                                                                    mod,
+                                                                    &keysym));
                 break;
             case DIET_KEYRELEASE:
                 posted += SDL_PrivateKeyboard(SDL_RELEASED,
-                                              DirectFB_TranslateKey
-                                              (evt.key_id, evt.key_symbol,
-                                               mod, &keysym));
+                                              DirectFB_TranslateKey(evt.
+                                                                    key_id,
+                                                                    evt.
+                                                                    key_symbol,
+                                                                    mod,
+                                                                    &keysym));
                 break;
             case DIET_AXISMOTION:
                 if (evt.flags & DIEF_AXISREL) {