ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp
(Generate patch)

Comparing SheepShaver/src/kpx_cpu/sheepshaver_glue.cpp (file contents):
Revision 1.46 by gbeauche, 2004-06-22T17:10:08Z vs.
Revision 1.47 by gbeauche, 2004-06-24T15:37:26Z

# Line 43 | Line 43
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"
# Line 1059 | Line 1063 | void TriggerInterrupt(void)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines