1575 |
|
{ |
1576 |
|
machine_regs *r = MACHINE_REGISTERS(scp); |
1577 |
|
|
1578 |
– |
#ifdef USE_SDL_VIDEO |
1579 |
– |
// We must fill in the events queue in the same thread that did call SDL_SetVideoMode() |
1580 |
– |
SDL_PumpEvents(); |
1581 |
– |
#endif |
1582 |
– |
|
1583 |
– |
// Do nothing if interrupts are disabled |
1584 |
– |
if (*(int32 *)XLM_IRQ_NEST > 0) |
1585 |
– |
return; |
1586 |
– |
|
1578 |
|
#ifdef SYSTEM_CLOBBERS_R2 |
1579 |
|
// Restore pointer to Thread Local Storage |
1580 |
|
set_r2(TOC); |
1584 |
|
set_r13(R13); |
1585 |
|
#endif |
1586 |
|
|
1587 |
+ |
#ifdef USE_SDL_VIDEO |
1588 |
+ |
// We must fill in the events queue in the same thread that did call SDL_SetVideoMode() |
1589 |
+ |
SDL_PumpEvents(); |
1590 |
+ |
#endif |
1591 |
+ |
|
1592 |
+ |
// Do nothing if interrupts are disabled |
1593 |
+ |
if (*(int32 *)XLM_IRQ_NEST > 0) |
1594 |
+ |
return; |
1595 |
+ |
|
1596 |
|
// Disable MacOS stack sniffer |
1597 |
|
WriteMacInt32(0x110, 0); |
1598 |
|
|