src/events/SDL_mouse.c
changeset 10499 363c1c7e7a41
parent 10390 420482621a34
child 10609 d702ecbd8ba7
     1.1 --- a/src/events/SDL_mouse.c	Fri Sep 30 09:26:57 2016 -0400
     1.2 +++ b/src/events/SDL_mouse.c	Fri Oct 07 23:40:44 2016 -0700
     1.3 @@ -564,21 +564,11 @@
     1.4  static SDL_bool
     1.5  ShouldUseRelativeModeWarp(SDL_Mouse *mouse)
     1.6  {
     1.7 -    const char *hint;
     1.8 -
     1.9      if (!mouse->SetRelativeMouseMode) {
    1.10          return SDL_TRUE;
    1.11      }
    1.12  
    1.13 -    hint = SDL_GetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP);
    1.14 -    if (hint) {
    1.15 -        if (*hint == '0') {
    1.16 -            return SDL_FALSE;
    1.17 -        } else {
    1.18 -            return SDL_TRUE;
    1.19 -        }
    1.20 -    }
    1.21 -    return SDL_FALSE;
    1.22 +    return SDL_GetHintBoolean(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, SDL_FALSE);
    1.23  }
    1.24  
    1.25  int