mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-27 06:35:16 +00:00
FIX None macro from X11 colliding with Event::None and others
This commit is contained in:
parent
bdd64b2c34
commit
886ff676f6
@ -37,6 +37,11 @@
|
|||||||
#endif
|
#endif
|
||||||
#elif defined(ALLEGRO_UNIX)
|
#elif defined(ALLEGRO_UNIX)
|
||||||
#include <xalleg.h>
|
#include <xalleg.h>
|
||||||
|
#ifdef None
|
||||||
|
#undef None
|
||||||
|
#define X11_None 0L
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@ -628,7 +633,7 @@ public:
|
|||||||
XGrabPointer(_xwin.display, _xwin.window, False,
|
XGrabPointer(_xwin.display, _xwin.window, False,
|
||||||
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
|
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
|
||||||
GrabModeAsync, GrabModeAsync,
|
GrabModeAsync, GrabModeAsync,
|
||||||
None, None, CurrentTime);
|
X11_None, X11_None, CurrentTime);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user