Mercurial > sdl-ios-xcode
comparison src/video/nanox/SDL_nxmouse.c @ 1338:604d73db6802
Removed uses of stdlib.h and string.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 09:29:18 +0000 |
parents | b8d311d90021 |
children | c71e05b4dc2e |
comparison
equal
deleted
inserted
replaced
1337:c687f06c7473 | 1338:604d73db6802 |
---|---|
22 | 22 |
23 Hsieh-Fu Tsai | 23 Hsieh-Fu Tsai |
24 clare@setabox.com | 24 clare@setabox.com |
25 */ | 25 */ |
26 | 26 |
27 #include <stdlib.h> | 27 #include "SDL_stdlib.h" |
28 | |
29 #include "SDL_error.h" | 28 #include "SDL_error.h" |
30 #include "SDL_events_c.h" | 29 #include "SDL_events_c.h" |
31 | 30 |
32 #include "SDL_nxmouse_c.h" | 31 #include "SDL_nxmouse_c.h" |
33 | 32 |
41 { | 40 { |
42 WMcursor * cursor ; | 41 WMcursor * cursor ; |
43 | 42 |
44 Dprintf ("enter NX_CreateWMCursor\n") ; | 43 Dprintf ("enter NX_CreateWMCursor\n") ; |
45 | 44 |
46 cursor = (WMcursor *) malloc (sizeof (WMcursor)) ; | 45 cursor = (WMcursor *) SDL_malloc (sizeof (WMcursor)) ; |
47 if (cursor == NULL) { | 46 if (cursor == NULL) { |
48 SDL_OutOfMemory () ; | 47 SDL_OutOfMemory () ; |
49 return NULL ; | 48 return NULL ; |
50 } | 49 } |
51 | 50 |
54 } | 53 } |
55 | 54 |
56 void NX_FreeWMCursor (_THIS, WMcursor * cursor) | 55 void NX_FreeWMCursor (_THIS, WMcursor * cursor) |
57 { | 56 { |
58 Dprintf ("NX_FreeWMCursor\n") ; | 57 Dprintf ("NX_FreeWMCursor\n") ; |
59 free (cursor) ; | 58 SDL_free (cursor) ; |
60 return ; | 59 return ; |
61 } | 60 } |
62 | 61 |
63 void NX_WarpWMCursor(_THIS, Uint16 x, Uint16 y) | 62 void NX_WarpWMCursor(_THIS, Uint16 x, Uint16 y) |
64 { | 63 { |