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:
parent
2f982daf92
commit
b681d85d5f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue