fix WaitNextEvent call so that it doesn't request a negative sleep time (which is apparently ok for PPC but not x86)
svn: r5353
This commit is contained in:
parent
3cf7d2a55e
commit
51720e3cc9
|
@ -504,7 +504,7 @@ int WNE(EventRecord *e, double sleep_secs)
|
|||
|
||||
waiting_for_next_event = 1;
|
||||
|
||||
r = WaitNextEvent(everyEvent, e, sleep_secs * 60, mouseRgn);
|
||||
r = WaitNextEvent(everyEvent, e, (sleep_secs < 0) ? 0x7FFFFFFF : sleep_secs * 60, mouseRgn);
|
||||
|
||||
waiting_for_next_event = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user