comparison src/video/gem/SDL_gemmouse.c @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents c9b51268668f
children 604d73db6802
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
55 return; 55 return;
56 56
57 graf_mouse(ARROW, NULL); 57 graf_mouse(ARROW, NULL);
58 58
59 if (cursor->mform_p != NULL) 59 if (cursor->mform_p != NULL)
60 free(cursor->mform_p); 60 SDL_free(cursor->mform_p);
61 61
62 free(cursor); 62 SDL_free(cursor);
63 } 63 }
64 64
65 WMcursor *GEM_CreateWMCursor(_THIS, 65 WMcursor *GEM_CreateWMCursor(_THIS,
66 Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y) 66 Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y)
67 { 67 {
75 MAXCURWIDTH, MAXCURHEIGHT); 75 MAXCURWIDTH, MAXCURHEIGHT);
76 return(NULL); 76 return(NULL);
77 } 77 }
78 78
79 /* Allocate the cursor memory */ 79 /* Allocate the cursor memory */
80 cursor = (WMcursor *)malloc(sizeof(WMcursor)); 80 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor));
81 if ( cursor == NULL ) { 81 if ( cursor == NULL ) {
82 SDL_OutOfMemory(); 82 SDL_OutOfMemory();
83 return(NULL); 83 return(NULL);
84 } 84 }
85 85
86 /* Allocate mform */ 86 /* Allocate mform */
87 new_mform = (MFORM *)malloc(sizeof(MFORM)); 87 new_mform = (MFORM *)SDL_malloc(sizeof(MFORM));
88 if (new_mform == NULL) { 88 if (new_mform == NULL) {
89 free(cursor); 89 SDL_free(cursor);
90 SDL_OutOfMemory(); 90 SDL_OutOfMemory();
91 return(NULL); 91 return(NULL);
92 } 92 }
93 93
94 cursor->mform_p = new_mform; 94 cursor->mform_p = new_mform;