Mercurial > sdl-ios-xcode
diff src/video/cybergfx/SDL_amigamouse.c @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | d910939febfa |
children |
line wrap: on
line diff
--- a/src/video/cybergfx/SDL_amigamouse.c Thu Jul 06 18:01:37 2006 +0000 +++ b/src/video/cybergfx/SDL_amigamouse.c Mon Jul 10 21:04:37 2006 +0000 @@ -29,49 +29,57 @@ /* 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: */