Fix hopefully problem I introduced for compiling on 64-bit linux (found by Tecan). Needs test from someone with 64-bit system.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3068 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
a08f3e25d2
commit
95ea9b9b4e
|
@ -1818,7 +1818,7 @@ void CIrrDeviceLinux::copyToClipboard(const c8* text) const
|
||||||
// return true if the passed event has the type passed in parameter arg
|
// return true if the passed event has the type passed in parameter arg
|
||||||
Bool PredicateIsEventType(Display *display, XEvent *event, XPointer arg)
|
Bool PredicateIsEventType(Display *display, XEvent *event, XPointer arg)
|
||||||
{
|
{
|
||||||
if ( event && event->type == (int)arg )
|
if ( event && event->type == *(int*)arg )
|
||||||
{
|
{
|
||||||
// os::Printer::log("remove event:", core::stringc((int)arg).c_str(), ELL_INFORMATION);
|
// os::Printer::log("remove event:", core::stringc((int)arg).c_str(), ELL_INFORMATION);
|
||||||
return True;
|
return True;
|
||||||
|
@ -1834,11 +1834,16 @@ void CIrrDeviceLinux::clearSystemMessages()
|
||||||
if (CreationParams.DriverType != video::EDT_NULL)
|
if (CreationParams.DriverType != video::EDT_NULL)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
while ( XCheckIfEvent(display, &event, PredicateIsEventType, (XPointer)ButtonPress) == True ) {}
|
int usrArg = ButtonPress;
|
||||||
while ( XCheckIfEvent(display, &event, PredicateIsEventType, (XPointer)ButtonRelease) == True ) {}
|
while ( XCheckIfEvent(display, &event, PredicateIsEventType, XPointer(&usrArg)) == True ) {}
|
||||||
while ( XCheckIfEvent(display, &event, PredicateIsEventType, (XPointer)MotionNotify) == True ) {}
|
usrArg = ButtonRelease;
|
||||||
while ( XCheckIfEvent(display, &event, PredicateIsEventType, (XPointer)KeyRelease) == True ) {}
|
while ( XCheckIfEvent(display, &event, PredicateIsEventType, XPointer(&usrArg)) == True ) {}
|
||||||
while ( XCheckIfEvent(display, &event, PredicateIsEventType, (XPointer)KeyPress) == True ) {}
|
usrArg = MotionNotify;
|
||||||
|
while ( XCheckIfEvent(display, &event, PredicateIsEventType, XPointer(&usrArg)) == True ) {}
|
||||||
|
usrArg = KeyRelease;
|
||||||
|
while ( XCheckIfEvent(display, &event, PredicateIsEventType, XPointer(&usrArg)) == True ) {}
|
||||||
|
usrArg = KeyPress;
|
||||||
|
while ( XCheckIfEvent(display, &event, PredicateIsEventType, XPointer(&usrArg)) == True ) {}
|
||||||
}
|
}
|
||||||
#endif //_IRR_COMPILE_WITH_X11_
|
#endif //_IRR_COMPILE_WITH_X11_
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue