Ticket #8306: grab.diff

File grab.diff, 1.0 KB (added by eriktorbjorn, 21 years ago)

Patch against a December 15 CVS snapshot

  • scummvm/backends/sdl/sdl-common.cpp

    diff -ur ScummVM-cvs20031215/scummvm/backends/sdl/sdl-common.cpp ScummVM-cvs20031215+hack/scummvm/backends/sdl/sdl-common.cpp
    old new  
    10201020
    10211021        case PROP_GET_SAMPLE_RATE:
    10221022                return SAMPLES_PER_SEC;
     1023
     1024        case PROP_TOGGLE_MOUSE_GRAB:
     1025                if (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GRAB_OFF)
     1026                        SDL_WM_GrabInput(SDL_GRAB_ON);
     1027                else
     1028                        SDL_WM_GrabInput(SDL_GRAB_OFF);
     1029                break;
    10231030        }
    10241031
    10251032        return 0;
  • scummvm/common/system.h

    diff -ur ScummVM-cvs20031215/scummvm/common/system.h ScummVM-cvs20031215+hack/scummvm/common/system.h
    old new  
    9898                PROP_GET_FMOPL_ENV_BITS,
    9999                PROP_GET_FMOPL_EG_ENT,
    100100                PROP_TOGGLE_ASPECT_RATIO,
     101                PROP_TOGGLE_MOUSE_GRAB,
    101102                PROP_WANT_RECT_OPTIM
    102103        };
    103104        union Property {