diff src/video/nanox/SDL_nxmouse.c @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/video/nanox/SDL_nxmouse.c	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/nanox/SDL_nxmouse.c	Sun May 28 13:04:16 2006 +0000
@@ -30,50 +30,58 @@
 #include "SDL_nxmouse_c.h"
 
 // The implementation dependent data for the window manager cursor
-struct WMcursor {
-    int unused ;
-} ;
-
-WMcursor * NX_CreateWMCursor (_THIS,
-        Uint8 * data, Uint8 * mask, int w, int h, int hot_x, int hot_y)
+struct WMcursor
 {
-    WMcursor * cursor ;
-
-    Dprintf ("enter NX_CreateWMCursor\n") ;
+    int unused;
+};
 
-    cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)) ;
+WMcursor *
+NX_CreateWMCursor (_THIS,
+                   Uint8 * data, Uint8 * mask, int w, int h, int hot_x,
+                   int hot_y)
+{
+    WMcursor *cursor;
+
+    Dprintf ("enter NX_CreateWMCursor\n");
+
+    cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor));
     if (cursor == NULL) {
-        SDL_OutOfMemory () ;
-        return NULL ;
+        SDL_OutOfMemory ();
+        return NULL;
     }
 
-    Dprintf ("leave NX_CreateWMCursor\n") ;
-    return cursor ;
+    Dprintf ("leave NX_CreateWMCursor\n");
+    return cursor;
 }
 
-void NX_FreeWMCursor (_THIS, WMcursor * cursor)
+void
+NX_FreeWMCursor (_THIS, WMcursor * cursor)
 {
-    Dprintf ("NX_FreeWMCursor\n") ;
-    SDL_free (cursor) ;
-    return ;
+    Dprintf ("NX_FreeWMCursor\n");
+    SDL_free (cursor);
+    return;
 }
 
-void NX_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
+void
+NX_WarpWMCursor (_THIS, Uint16 x, Uint16 y)
 {
-    GR_WINDOW_INFO info ;
+    GR_WINDOW_INFO info;
 
-    Dprintf ("enter NX_WarpWMCursor\n") ;
-    SDL_Lock_EventThread () ;
-    
-    GrGetWindowInfo (SDL_Window, & info) ;
-    GrMoveCursor (info.x + x, info.y + y) ;
+    Dprintf ("enter NX_WarpWMCursor\n");
+    SDL_Lock_EventThread ();
 
-    SDL_Unlock_EventThread () ;
-    Dprintf ("leave NX_WarpWMCursor\n") ;
+    GrGetWindowInfo (SDL_Window, &info);
+    GrMoveCursor (info.x + x, info.y + y);
+
+    SDL_Unlock_EventThread ();
+    Dprintf ("leave NX_WarpWMCursor\n");
 }
 
-int NX_ShowWMCursor (_THIS, WMcursor * cursor)
+int
+NX_ShowWMCursor (_THIS, WMcursor * cursor)
 {
-    Dprintf ("NX_ShowWMCursor\n") ;
-    return 1 ;
+    Dprintf ("NX_ShowWMCursor\n");
+    return 1;
 }
+
+/* vi: set ts=4 sw=4 expandtab: */