| 86 | } |
| 87 | |
| 88 | static SDL_Cursor * |
| 89 | Android_CreateCursor(SDL_Surface * surface, int hot_x, int hot_y) |
| 90 | { |
| 91 | int custom_cursor; |
| 92 | SDL_Surface *converted; |
| 93 | |
| 94 | converted = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_ARGB8888, 0); |
| 95 | if (!converted) { |
| 96 | return NULL; |
| 97 | } |
| 98 | custom_cursor = Android_JNI_CreateCustomCursor(converted, hot_x, hot_y); |
| 99 | SDL_FreeSurface(converted); |
| 100 | if (!custom_cursor) { |
| 101 | SDL_Unsupported(); |
| 102 | return NULL; |
| 103 | } |
| 104 | return Android_WrapCursor(custom_cursor, 0); |
| 105 | } |
| 106 | |
| 107 | static SDL_Cursor * |
| 108 | Android_CreateSystemCursor(SDL_SystemCursor id) |
no test coverage detected