From c8405f10d9591555cf2969a4fa9d6c8c928360de Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 18 Feb 2013 16:24:33 -0800 Subject: [PATCH] Fixed bug where if X11 is not dynamically loaded, then we think none of the X11 modules are available. --- src/video/x11/SDL_x11dyn.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/x11/SDL_x11dyn.c b/src/video/x11/SDL_x11dyn.c index 1b70c4ce3..dbd7d7c13 100644 --- a/src/video/x11/SDL_x11dyn.c +++ b/src/video/x11/SDL_x11dyn.c @@ -211,6 +211,12 @@ SDL_X11_LoadSymbols(void) } } #else +#define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 1; /* default yes */ +#define SDL_X11_SYM(a,fn,x,y,z) +#include "SDL_x11sym.h" +#undef SDL_X11_MODULE +#undef SDL_X11_SYM + #ifdef X_HAVE_UTF8_STRING pXCreateIC = XCreateIC; pXGetICValues = XGetICValues;