src/events/SDL_mouse.c
changeset 12024 3688283680b1
parent 12007 ecfb6a793c30
child 12188 f081a5675f93
     1.1 --- a/src/events/SDL_mouse.c	Mon Jun 18 13:14:00 2018 -0700
     1.2 +++ b/src/events/SDL_mouse.c	Mon Jun 18 13:14:02 2018 -0700
     1.3 @@ -721,6 +721,9 @@
     1.4      } else if (mouse->SetRelativeMouseMode(enabled) < 0) {
     1.5          if (enabled) {
     1.6              /* Fall back to warp mode if native relative mode failed */
     1.7 +            if (!mouse->WarpMouse) {
     1.8 +                return SDL_SetError("No relative mode implementation available");
     1.9 +            }
    1.10              mouse->relative_mode_warp = SDL_TRUE;
    1.11          }
    1.12      }