43 |
|
#include <stdio.h> |
44 |
|
#include <stdlib.h> |
45 |
|
|
46 |
+ |
#ifdef USE_SDL_VIDEO |
47 |
+ |
#include <SDL_events.h> |
48 |
+ |
#endif |
49 |
+ |
|
50 |
|
#if ENABLE_MON |
51 |
|
#include "mon.h" |
52 |
|
#include "mon_disass.h" |
1063 |
|
|
1064 |
|
void sheepshaver_cpu::handle_interrupt(void) |
1065 |
|
{ |
1066 |
+ |
#ifdef USE_SDL_VIDEO |
1067 |
+ |
// We must fill in the events queue in the same thread that did call SDL_SetVideoMode() |
1068 |
+ |
SDL_PumpEvents(); |
1069 |
+ |
#endif |
1070 |
+ |
|
1071 |
|
// Do nothing if interrupts are disabled |
1072 |
|
if (int32(ReadMacInt32(XLM_IRQ_NEST)) > 0) |
1073 |
|
return; |