mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-13 13:58:50 +00:00
win32: Set the number of frames correctly when caching a scaled animated cursor
Fixes #14284
This commit is contained in:
@@ -484,7 +484,7 @@ static SDL_Cursor *WIN_CreateAnimatedCursor(SDL_CursorFrameInfo *frames, int fra
|
||||
}
|
||||
data->hot_x = hot_x;
|
||||
data->hot_y = hot_y;
|
||||
data->num_frames = 1;
|
||||
data->num_frames = frame_count;
|
||||
for (int i = 0; i < frame_count; ++i) {
|
||||
data->frames[i].surface = frames[i].surface;
|
||||
data->frames[i].duration = frames[i].duration;
|
||||
|
||||
Reference in New Issue
Block a user