mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Guido:
- new SpinCursor (replacing Jack's almost-identical one) - use GetEventQueue in stead of GetEvQHdr
This commit is contained in:
parent
76ceece75a
commit
cfadbd40e1
1 changed files with 5 additions and 14 deletions
|
@ -155,14 +155,9 @@ PyMac_FixGUSIcd()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __CFM68K__
|
#ifdef __CFM68K__
|
||||||
/*
|
void SpinCursor(short x) { /* Dummy */ }
|
||||||
** There is no SpinCursor for cfm68k.
|
#endif /* __CFM68K */
|
||||||
*/
|
|
||||||
SpinCursor(dummy)
|
|
||||||
int dummy;
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -282,12 +277,9 @@ static void
|
||||||
scan_event_queue(flush)
|
scan_event_queue(flush)
|
||||||
int flush;
|
int flush;
|
||||||
{
|
{
|
||||||
#if defined(__MWERKS__) && defined(__CFM68K__)
|
|
||||||
return; /* No GetEvQHdr yet */
|
|
||||||
#else
|
|
||||||
register EvQElPtr q;
|
register EvQElPtr q;
|
||||||
|
|
||||||
q = (EvQElPtr) GetEvQHdr()->qHead;
|
q = (EvQElPtr) GetEventQueue()->qHead;
|
||||||
|
|
||||||
for (; q; q = (EvQElPtr)q->qLink) {
|
for (; q; q = (EvQElPtr)q->qLink) {
|
||||||
if (q->evtQWhat == keyDown &&
|
if (q->evtQWhat == keyDown &&
|
||||||
|
@ -299,7 +291,6 @@ scan_event_queue(flush)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -398,7 +389,7 @@ PyMac_HandleEvent(evp)
|
||||||
/*
|
/*
|
||||||
** Yield the CPU to other tasks.
|
** Yield the CPU to other tasks.
|
||||||
*/
|
*/
|
||||||
static
|
static void
|
||||||
PyMac_DoYield()
|
PyMac_DoYield()
|
||||||
{
|
{
|
||||||
EventRecord ev;
|
EventRecord ev;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue