Mercurial > sdl-ios-xcode
comparison src/video/nanox/SDL_nxmouse.c @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
34 { | 34 { |
35 int unused; | 35 int unused; |
36 }; | 36 }; |
37 | 37 |
38 WMcursor * | 38 WMcursor * |
39 NX_CreateWMCursor (_THIS, | 39 NX_CreateWMCursor(_THIS, |
40 Uint8 * data, Uint8 * mask, int w, int h, int hot_x, | 40 Uint8 * data, Uint8 * mask, int w, int h, int hot_x, |
41 int hot_y) | 41 int hot_y) |
42 { | 42 { |
43 WMcursor *cursor; | 43 WMcursor *cursor; |
44 | 44 |
45 Dprintf ("enter NX_CreateWMCursor\n"); | 45 Dprintf("enter NX_CreateWMCursor\n"); |
46 | 46 |
47 cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)); | 47 cursor = (WMcursor *) SDL_malloc(sizeof(WMcursor)); |
48 if (cursor == NULL) { | 48 if (cursor == NULL) { |
49 SDL_OutOfMemory (); | 49 SDL_OutOfMemory(); |
50 return NULL; | 50 return NULL; |
51 } | 51 } |
52 | 52 |
53 Dprintf ("leave NX_CreateWMCursor\n"); | 53 Dprintf("leave NX_CreateWMCursor\n"); |
54 return cursor; | 54 return cursor; |
55 } | 55 } |
56 | 56 |
57 void | 57 void |
58 NX_FreeWMCursor (_THIS, WMcursor * cursor) | 58 NX_FreeWMCursor(_THIS, WMcursor * cursor) |
59 { | 59 { |
60 Dprintf ("NX_FreeWMCursor\n"); | 60 Dprintf("NX_FreeWMCursor\n"); |
61 SDL_free (cursor); | 61 SDL_free(cursor); |
62 return; | 62 return; |
63 } | 63 } |
64 | 64 |
65 void | 65 void |
66 NX_WarpWMCursor (_THIS, Uint16 x, Uint16 y) | 66 NX_WarpWMCursor(_THIS, Uint16 x, Uint16 y) |
67 { | 67 { |
68 GR_WINDOW_INFO info; | 68 GR_WINDOW_INFO info; |
69 | 69 |
70 Dprintf ("enter NX_WarpWMCursor\n"); | 70 Dprintf("enter NX_WarpWMCursor\n"); |
71 SDL_Lock_EventThread (); | 71 SDL_Lock_EventThread(); |
72 | 72 |
73 GrGetWindowInfo (SDL_Window, &info); | 73 GrGetWindowInfo(SDL_Window, &info); |
74 GrMoveCursor (info.x + x, info.y + y); | 74 GrMoveCursor(info.x + x, info.y + y); |
75 | 75 |
76 SDL_Unlock_EventThread (); | 76 SDL_Unlock_EventThread(); |
77 Dprintf ("leave NX_WarpWMCursor\n"); | 77 Dprintf("leave NX_WarpWMCursor\n"); |
78 } | 78 } |
79 | 79 |
80 int | 80 int |
81 NX_ShowWMCursor (_THIS, WMcursor * cursor) | 81 NX_ShowWMCursor(_THIS, WMcursor * cursor) |
82 { | 82 { |
83 Dprintf ("NX_ShowWMCursor\n"); | 83 Dprintf("NX_ShowWMCursor\n"); |
84 return 1; | 84 return 1; |
85 } | 85 } |
86 | 86 |
87 /* vi: set ts=4 sw=4 expandtab: */ | 87 /* vi: set ts=4 sw=4 expandtab: */ |