|
@@ -718,6 +718,9 @@ static int Wayland_ShowCursor(SDL_Cursor *cursor)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
Wayland_CachedCustomCursor *cached = Wayland_GetCachedCustomCursor(cursor);
|
|
Wayland_CachedCustomCursor *cached = Wayland_GetCachedCustomCursor(cursor);
|
|
|
|
+ if (!cached) {
|
|
|
|
+ return -1;
|
|
|
|
+ }
|
|
dst_width = cached->dst_width;
|
|
dst_width = cached->dst_width;
|
|
dst_height = cached->dst_height;
|
|
dst_height = cached->dst_height;
|
|
scale = cached->scale;
|
|
scale = cached->scale;
|