1
0
Fork 0

fix compilation on machines that have X11 libraries installed, but use an sdl without X11.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4087
This commit is contained in:
Peter Veenstra 2018-03-23 08:54:24 +00:00
parent 2f982daf92
commit b681d85d5f

View file

@ -2459,6 +2459,8 @@ void MAPPER_StartUp(Section * sec) {
sdlkey_map[0x41]=SDLK_KP6;
#elif !defined (WIN32) /* => Linux & BSDs */
bool evdev_input = false;
#ifdef SDL_VIDEO_DRIVER_X11
//SDL needs to be compiled to use it, else the next makes no sense.
#ifdef C_X11_XKB
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
@ -2477,6 +2479,7 @@ void MAPPER_StartUp(Section * sec) {
XkbFreeClientMap(desc,0,True);
}
}
#endif
#endif
if (evdev_input) {
sdlkey_map[0x67]=SDLK_UP;