comparison src/video/nanox/SDL_nxmodes.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 28 #include "SDL_string.h"
29 #include "SDL_nxmodes_c.h" 29 #include "SDL_nxmodes_c.h"
30 30
31 SDL_Rect ** NX_ListModes (_THIS, SDL_PixelFormat * format, Uint32 flags) 31 SDL_Rect ** NX_ListModes (_THIS, SDL_PixelFormat * format, Uint32 flags)
32 { 32 {
33 if (flags & SDL_FULLSCREEN) 33 if (flags & SDL_FULLSCREEN)
44 { 44 {
45 int i ; 45 int i ;
46 46
47 if (SDL_modelist) { 47 if (SDL_modelist) {
48 for (i = 0; SDL_modelist [i]; ++ i) { 48 for (i = 0; SDL_modelist [i]; ++ i) {
49 free (SDL_modelist [i]) ; 49 SDL_free (SDL_modelist [i]) ;
50 } 50 }
51 free (SDL_modelist) ; 51 SDL_free (SDL_modelist) ;
52 SDL_modelist = NULL; 52 SDL_modelist = NULL;
53 } 53 }
54 } 54 }
55 55
56 int NX_EnterFullScreen (_THIS) 56 int NX_EnterFullScreen (_THIS)