comparison src/video/x11/SDL_x11dga.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
23 /* This is currently only used to enable DGA mouse. 23 /* This is currently only used to enable DGA mouse.
24 The new fullscreen code makes it very difficult to handle DGA dynamically. 24 The new fullscreen code makes it very difficult to handle DGA dynamically.
25 There will be a completely separate DGA driver that is fullscreen-only. 25 There will be a completely separate DGA driver that is fullscreen-only.
26 */ 26 */
27 27
28 #include <stdlib.h> /* For getenv() */ 28 #include <stdlib.h> /* For SDL_getenv() */
29 #include "SDL_video.h" 29 #include "SDL_video.h"
30 #include "SDL_cursor_c.h" 30 #include "SDL_cursor_c.h"
31 #include "SDL_x11dga_c.h" 31 #include "SDL_x11dga_c.h"
32 32
33 /* Global for the error handler */ 33 /* Global for the error handler */
44 #ifdef DEFAULT_DGAMOUSE 44 #ifdef DEFAULT_DGAMOUSE
45 use_dgamouse = 1; 45 use_dgamouse = 1;
46 #else 46 #else
47 use_dgamouse = 0; 47 use_dgamouse = 0;
48 #endif 48 #endif
49 env_use_dgamouse = getenv("SDL_VIDEO_X11_DGAMOUSE"); 49 env_use_dgamouse = SDL_getenv("SDL_VIDEO_X11_DGAMOUSE");
50 if ( env_use_dgamouse ) { 50 if ( env_use_dgamouse ) {
51 use_dgamouse = atoi(env_use_dgamouse); 51 use_dgamouse = atoi(env_use_dgamouse);
52 } 52 }
53 /* Check for buggy X servers */ 53 /* Check for buggy X servers */
54 if ( use_dgamouse && BUGGY_XFREE86(==, 4000) ) { 54 if ( use_dgamouse && BUGGY_XFREE86(==, 4000) ) {