SDL: Convert the coordinates in drop events as well (thanks @Dragon-Baroque!)

From be0ba78c56f6796b30ab90a07ec2122b07885704 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 16 Jan 2024 12:00:36 -0800
Subject: [PATCH] Convert the coordinates in drop events as well (thanks
 @Dragon-Baroque!)

---
 src/render/SDL_render.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 7cd43c9b7745..7e1920ea729b 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -2490,6 +2490,14 @@ int SDL_ConvertEventToRenderCoordinates(SDL_Renderer *renderer, SDL_Event *event
             }
             SDL_RenderCoordinatesFromWindow(renderer, event->tfinger.x * w, event->tfinger.y * h, &event->tfinger.x, &event->tfinger.y);
         }
+    } else if (event->type == SDL_EVENT_DROP_POSITION ||
+               event->type == SDL_EVENT_DROP_FILE ||
+               event->type == SDL_EVENT_DROP_TEXT ||
+               event->type == SDL_EVENT_DROP_COMPLETE) {
+        SDL_Window *window = SDL_GetWindowFromID(event->drop.windowID);
+        if (window == renderer->window) {
+            SDL_RenderCoordinatesFromWindow(renderer, event->drop.x, event->drop.y, &event->wheel.x, &event->wheel.y);
+        }
     }
     return 0;
 }