SDL: win32: Set the number of frames correctly when caching a scaled animated cursor

From 3669920fddcc418c5f9aca97e77a3f380308d9c0 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Mon, 20 Oct 2025 13:26:19 -0400
Subject: [PATCH] win32: Set the number of frames correctly when caching a
 scaled animated cursor

Fixes #14284
---
 src/video/windows/SDL_windowsmouse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/windows/SDL_windowsmouse.c b/src/video/windows/SDL_windowsmouse.c
index af425464c2755..bc48e9fcda664 100644
--- a/src/video/windows/SDL_windowsmouse.c
+++ b/src/video/windows/SDL_windowsmouse.c
@@ -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;