comparison src/video/x11/SDL_x11video.h @ 1168:045f186426e1

Dynamically load X11 libraries like we currently do for alsa, esd, etc. This allows you to run an SDL program on a system without Xlib, since it'll just report the x11 target unavailable at runtime.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 05 Nov 2005 19:53:37 +0000
parents b8d311d90021
children 9867f3d86e44
comparison
equal deleted inserted replaced
1167:435c2e481299 1168:045f186426e1
29 #define _SDL_x11video_h 29 #define _SDL_x11video_h
30 30
31 #include <X11/Xlib.h> 31 #include <X11/Xlib.h>
32 #include <X11/Xutil.h> 32 #include <X11/Xutil.h>
33 #include <X11/Xatom.h> 33 #include <X11/Xatom.h>
34 #ifndef NO_SHARED_MEMORY 34
35 #include <sys/ipc.h>
36 #include <sys/shm.h>
37 #include <X11/extensions/XShm.h>
38 #endif
39 #ifdef XFREE86_DGAMOUSE 35 #ifdef XFREE86_DGAMOUSE
40 #include <XFree86/extensions/xf86dga.h> 36 #include <XFree86/extensions/xf86dga.h>
41 #endif 37 #endif
42 #ifdef XFREE86_VM 38 #ifdef XFREE86_VM
43 #include <XFree86/extensions/xf86vmode.h> 39 #include <XFree86/extensions/xf86vmode.h>
48 44
49 #include <string.h> 45 #include <string.h>
50 46
51 #include "SDL_mouse.h" 47 #include "SDL_mouse.h"
52 #include "SDL_sysvideo.h" 48 #include "SDL_sysvideo.h"
49 #include "SDL_x11dyn.h"
53 50
54 /* Hidden "this" pointer for the video functions */ 51 /* Hidden "this" pointer for the video functions */
55 #define _THIS SDL_VideoDevice *this 52 #define _THIS SDL_VideoDevice *this
56 53
57 /* Private display data */ 54 /* Private display data */