comparison src/video/xbios/SDL_xbios_centscreen.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 1c9988e47824
children 604d73db6802
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
40 unsigned long result; 40 unsigned long result;
41 int cur_handle; /* Current Centscreen mode handle */ 41 int cur_handle; /* Current Centscreen mode handle */
42 42
43 /* Reset current mode list */ 43 /* Reset current mode list */
44 if (XBIOS_modelist) { 44 if (XBIOS_modelist) {
45 free(XBIOS_modelist); 45 SDL_free(XBIOS_modelist);
46 XBIOS_nummodes = 0; 46 XBIOS_nummodes = 0;
47 XBIOS_modelist = NULL; 47 XBIOS_modelist = NULL;
48 } 48 }
49 49
50 /* Add Centscreen modes */ 50 /* Add Centscreen modes */
63 SDL_XBIOS_AddMode(this, listedmode.mode, listedmode.physx, 63 SDL_XBIOS_AddMode(this, listedmode.mode, listedmode.physx,
64 listedmode.physy, listedmode.plan, SDL_FALSE 64 listedmode.physy, listedmode.plan, SDL_FALSE
65 ); 65 );
66 } 66 }
67 } 67 }
68 memcpy(&curmode, &listedmode, sizeof(centscreen_mode_t)); 68 SDL_memcpy(&curmode, &listedmode, sizeof(centscreen_mode_t));
69 curmode.mode = curmode.physx = curmode.physy = curmode.plan = 69 curmode.mode = curmode.physx = curmode.physy = curmode.plan =
70 curmode.logx = curmode.logy = -1; 70 curmode.logx = curmode.logy = -1;
71 result = Vnext(&curmode, &listedmode); 71 result = Vnext(&curmode, &listedmode);
72 } 72 }
73 } else { 73 } else {