Ticket #8895: atari-mint-scummvm.patch

File atari-mint-scummvm.patch, 2.0 KB (added by fingolfin, 12 years ago)

Remaining (not applied) parts of the patch

  • backends/platform/sdl/graphics.cpp

     
    3030#include "graphics/scaler.h"
    3131#include "graphics/surface.h"
    3232
     33#ifdef __MINT__
     34#include "backends/timer/default/default-timer.h"
     35#endif
     36
    3337static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
    3438        {"1x", "Normal (no scaling)", GFX_NORMAL},
    3539        {"2x", "2x", GFX_DOUBLESIZE},
     
    511515
    512516        Common::StackLock lock(_graphicsMutex); // Lock the mutex until this function ends
    513517
     518#ifdef __MINT__
     519        if (_timer != NULL)
     520                ((DefaultTimerManager *)_timer)->handler();
     521#endif
     522
    514523        internUpdateScreen();
    515524}
    516525
  • backends/platform/sdl/sdl.cpp

     
    210210}
    211211
    212212void 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
    213222        SDL_Delay(msecs);
    214223}
    215224
  • backends/platform/sdl/events.cpp

     
    2727#include "common/util.h"
    2828#include "common/events.h"
    2929
     30#ifdef __MINT__
     31#include "backends/timer/default/default-timer.h"
     32#endif
     33
    3034// FIXME move joystick defines out and replace with confile file options
    3135// we should really allow users to map any key to a joystick button
    3236#define JOY_DEADZONE 3200
     
    177181        int axis;
    178182        byte b = 0;
    179183
     184#ifdef __MINT__
     185        if (_timer != NULL)
     186                ((DefaultTimerManager *)_timer)->handler();
     187#endif
     188
    180189        handleKbdMouse();
    181190
    182191        // If the screen mode changed, send an Common::EVENT_SCREEN_CHANGED