Ticket #8895: atari-mint-scummvm.patch
File atari-mint-scummvm.patch, 2.0 KB (added by , 16 years ago) |
---|
-
backends/platform/sdl/graphics.cpp
30 30 #include "graphics/scaler.h" 31 31 #include "graphics/surface.h" 32 32 33 #ifdef __MINT__ 34 #include "backends/timer/default/default-timer.h" 35 #endif 36 33 37 static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { 34 38 {"1x", "Normal (no scaling)", GFX_NORMAL}, 35 39 {"2x", "2x", GFX_DOUBLESIZE}, … … 511 515 512 516 Common::StackLock lock(_graphicsMutex); // Lock the mutex until this function ends 513 517 518 #ifdef __MINT__ 519 if (_timer != NULL) 520 ((DefaultTimerManager *)_timer)->handler(); 521 #endif 522 514 523 internUpdateScreen(); 515 524 } 516 525 -
backends/platform/sdl/sdl.cpp
210 210 } 211 211 212 212 void OSystem_SDL::delayMillis(uint msecs) { 213 #ifdef __MINT__ 214 int tw = getMillis(); 215 if (_timer != NULL) { 216 ((DefaultTimerManager *)_timer)->handler(); 217 while (tw + msecs >= getMillis()) { 218 ((DefaultTimerManager *)_timer)->handler(); 219 } 220 } 221 #endif 213 222 SDL_Delay(msecs); 214 223 } 215 224 -
backends/platform/sdl/events.cpp
27 27 #include "common/util.h" 28 28 #include "common/events.h" 29 29 30 #ifdef __MINT__ 31 #include "backends/timer/default/default-timer.h" 32 #endif 33 30 34 // FIXME move joystick defines out and replace with confile file options 31 35 // we should really allow users to map any key to a joystick button 32 36 #define JOY_DEADZONE 3200 … … 177 181 int axis; 178 182 byte b = 0; 179 183 184 #ifdef __MINT__ 185 if (_timer != NULL) 186 ((DefaultTimerManager *)_timer)->handler(); 187 #endif 188 180 189 handleKbdMouse(); 181 190 182 191 // If the screen mode changed, send an Common::EVENT_SCREEN_CHANGED