Mercurial > sdl-ios-xcode
comparison src/video/dga/SDL_dgaevents.c @ 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 | b8f167923bfc |
comparison
equal
deleted
inserted
replaced
1167:435c2e481299 | 1168:045f186426e1 |
---|---|
45 static int DGA_DispatchEvent(_THIS) | 45 static int DGA_DispatchEvent(_THIS) |
46 { | 46 { |
47 int posted; | 47 int posted; |
48 SDL_NAME(XDGAEvent) xevent; | 48 SDL_NAME(XDGAEvent) xevent; |
49 | 49 |
50 XNextEvent(DGA_Display, (XEvent *)&xevent); | 50 pXNextEvent(DGA_Display, (XEvent *)&xevent); |
51 | 51 |
52 posted = 0; | 52 posted = 0; |
53 xevent.type -= DGA_event_base; | 53 xevent.type -= DGA_event_base; |
54 switch (xevent.type) { | 54 switch (xevent.type) { |
55 | 55 |