diff src/video/cybergfx/SDL_amigamouse.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/cybergfx/SDL_amigamouse.c	Sun May 21 17:27:13 2006 +0000
+++ b/src/video/cybergfx/SDL_amigamouse.c	Sun May 28 13:04:16 2006 +0000
@@ -29,49 +29,58 @@
 
 /* The implementation dependent data for the window manager cursor */
 
-typedef void * WMCursor;
+typedef void *WMCursor;
 
-void amiga_FreeWMCursor(_THIS, WMcursor *cursor)
+void
+amiga_FreeWMCursor (_THIS, WMcursor * cursor)
 {
 }
 
-WMcursor *amiga_CreateWMCursor(_THIS,
-		Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y)
+WMcursor *
+amiga_CreateWMCursor (_THIS,
+                      Uint8 * data, Uint8 * mask, int w, int h, int hot_x,
+                      int hot_y)
 {
-	return (WMcursor *)1; // Amiga has an Hardware cursor, so it's ok to return something unuseful but true
+    return (WMcursor *) 1;      // Amiga has an Hardware cursor, so it's ok to return something unuseful but true
 }
 
-int amiga_ShowWMCursor(_THIS, WMcursor *cursor)
+int
+amiga_ShowWMCursor (_THIS, WMcursor * cursor)
 {
-	/* Don't do anything if the display is gone */
-	if ( SDL_Display == NULL) {
-		return(0);
-	}
+    /* Don't do anything if the display is gone */
+    if (SDL_Display == NULL) {
+        return (0);
+    }
 
-	/* Set the Amiga prefs cursor cursor, or blank if cursor is NULL */
+    /* Set the Amiga prefs cursor cursor, or blank if cursor is NULL */
 
-	if ( SDL_Window ) {
-		SDL_Lock_EventThread();
-		if ( cursor == NULL ) {
-			if ( SDL_BlankCursor != NULL ) {
+    if (SDL_Window) {
+        SDL_Lock_EventThread ();
+        if (cursor == NULL) {
+            if (SDL_BlankCursor != NULL) {
 // Hide cursor HERE
-				SetPointer(SDL_Window,(UWORD *)SDL_BlankCursor,1,1,0,0);
-			}
-		} else {
+                SetPointer (SDL_Window, (UWORD *) SDL_BlankCursor, 1, 1,
+                            0, 0);
+            }
+        } else {
 // Show cursor
-			ClearPointer(SDL_Window);
-		}
-		SDL_Unlock_EventThread();
-	}
-	return(1);
+            ClearPointer (SDL_Window);
+        }
+        SDL_Unlock_EventThread ();
+    }
+    return (1);
 }
 
-void amiga_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
+void
+amiga_WarpWMCursor (_THIS, Uint16 x, Uint16 y)
 {
 /* FIXME: Not implemented */
 }
 
 /* Check to see if we need to enter or leave mouse relative mode */
-void amiga_CheckMouseMode(_THIS)
+void
+amiga_CheckMouseMode (_THIS)
 {
 }
+
+/* vi: set ts=4 sw=4 expandtab: */