mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
x11: fix compilation failure on older XInput2
Older versions of XInput2 do not declare struct XIGesturePinchEvent in XInput2.h, causing compilation failure in SDL_x11xinput2.c Check for XIGesturePinchEvent in the test for enabling SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_GESTURE
This commit is contained in:
committed by
Sam Lantinga
parent
bc68c1c920
commit
7690e00f42
@@ -457,7 +457,7 @@ macro(CheckX11)
|
|||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include <X11/extensions/XInput2.h>
|
#include <X11/extensions/XInput2.h>
|
||||||
int event_type = XI_GesturePinchBegin;
|
int event_type = XI_GesturePinchBegin;
|
||||||
XITouchClassInfo *t;
|
XIGesturePinchEvent *t;
|
||||||
Status XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f) {
|
Status XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f) {
|
||||||
return (Status)0;
|
return (Status)0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user