src/video/android/SDL_androidmouse.c
changeset 11932 a05a909eeddb
parent 11931 d479188e0155
child 12007 ecfb6a793c30
     1.1 --- a/src/video/android/SDL_androidmouse.c	Thu Mar 15 18:22:48 2018 -0700
     1.2 +++ b/src/video/android/SDL_androidmouse.c	Fri Mar 16 11:08:53 2018 -0700
     1.3 @@ -121,12 +121,18 @@
     1.4      if (cursor) {
     1.5          SDL_AndroidCursorData *data = (SDL_AndroidCursorData*)cursor->driverdata;
     1.6          if (data->custom_cursor) {
     1.7 -            Android_JNI_SetCustomCursor(data->custom_cursor);
     1.8 +            if (!Android_JNI_SetCustomCursor(data->custom_cursor)) {
     1.9 +                return SDL_Unsupported();
    1.10 +            }
    1.11          } else {
    1.12 -            Android_JNI_SetSystemCursor(data->system_cursor);
    1.13 +            if (!Android_JNI_SetSystemCursor(data->system_cursor)) {
    1.14 +                return SDL_Unsupported();
    1.15 +            }
    1.16          }
    1.17      } else {
    1.18 -        Android_JNI_SetSystemCursor(-1);
    1.19 +        if (!Android_JNI_SetSystemCursor(-1)) {
    1.20 +            return SDL_Unsupported();
    1.21 +        }
    1.22      }
    1.23      return 0;
    1.24  }