diff --git a/src/video/windows/SDL_windowsmouse.c b/src/video/windows/SDL_windowsmouse.c index af99ef6276..3a1c7cac89 100644 --- a/src/video/windows/SDL_windowsmouse.c +++ b/src/video/windows/SDL_windowsmouse.c @@ -390,7 +390,7 @@ static HCURSOR GetCachedCursor(SDL_Cursor *cursor) } int hot_x = (int)SDL_round(data->hot_x * scale); - int hot_y = (int)SDL_round(data->hot_x * scale); + int hot_y = (int)SDL_round(data->hot_y * scale); hcursor = WIN_CreateHCursor(surface, hot_x, hot_y); if (!hcursor) { goto error;