diff src/video/directfb/SDL_DirectFB_mouse.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents 1e690901ecd7
children
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_mouse.c	Thu Aug 21 12:38:21 2008 +0000
+++ b/src/video/directfb/SDL_DirectFB_mouse.c	Wed Aug 27 04:23:38 2008 +0000
@@ -85,14 +85,15 @@
     dsc.height = surface->h;
     dsc.pixelformat = DSPF_ARGB;
 
-    SDL_DFB_CHECKERR(devdata->dfb->
-                     CreateSurface(devdata->dfb, &dsc, &curdata->surf));
+    SDL_DFB_CHECKERR(devdata->
+                     dfb->CreateSurface(devdata->dfb, &dsc, &curdata->surf));
     curdata->hotx = hot_x;
     curdata->hoty = hot_y;
     cursor->driverdata = curdata;
 
-    SDL_DFB_CHECKERR(curdata->surf->
-                     Lock(curdata->surf, DSLF_WRITE, (void *) &dest, &pitch));
+    SDL_DFB_CHECKERR(curdata->
+                     surf->Lock(curdata->surf, DSLF_WRITE, (void *) &dest,
+                                &pitch));
 
     //FIXME: Implies a lot of things, e.g. rgba format for SDL_SURFACE ....
     p = surface->pixels;
@@ -133,19 +134,19 @@
         DFB_WindowData *windata = (DFB_WindowData *) window->driverdata;
 
         if (cursor)
-            SDL_DFB_CHECKERR(windata->window->
-                             SetCursorShape(windata->window, curdata->surf,
-                                            curdata->hotx, curdata->hoty));
+            SDL_DFB_CHECKERR(windata->window->SetCursorShape(windata->window,
+                                                             curdata->surf,
+                                                             curdata->hotx,
+                                                             curdata->hoty));
         //FIXME: This is somehow a directfb issue
         //TODO: Check administrative 
-        SDL_DFB_CHECKERR(dispdata->layer->
-                         SetCooperativeLevel(dispdata->layer,
-                                             DLSCL_ADMINISTRATIVE));
-        SDL_DFB_CHECKERR(dispdata->layer->
-                         SetCursorOpacity(dispdata->layer,
-                                          cursor ? 0xC0 : 0x00));
-        SDL_DFB_CHECKERR(dispdata->layer->
-                         SetCooperativeLevel(dispdata->layer, DLSCL_SHARED));
+        SDL_DFB_CHECKERR(dispdata->layer->SetCooperativeLevel(dispdata->layer,
+                                                              DLSCL_ADMINISTRATIVE));
+        SDL_DFB_CHECKERR(dispdata->layer->SetCursorOpacity(dispdata->layer,
+                                                           cursor ? 0xC0 :
+                                                           0x00));
+        SDL_DFB_CHECKERR(dispdata->layer->SetCooperativeLevel(dispdata->layer,
+                                                              DLSCL_SHARED));
     }
 
     return 0;
@@ -185,8 +186,8 @@
     int cx, cy;
 
     SDL_DFB_CHECKERR(windata->window->GetPosition(windata->window, &cx, &cy));
-    SDL_DFB_CHECKERR(dispdata->layer->
-                     WarpCursor(dispdata->layer, cx + x, cy + y));
+    SDL_DFB_CHECKERR(dispdata->
+                     layer->WarpCursor(dispdata->layer, cx + x, cy + y));
 
   error:
     return;