Fixed drop event coordinate conversion

main
Sam Lantinga 2024-01-16 14:07:42 -08:00
parent 3ca8cee874
commit 518b070aa9
1 changed files with 1 additions and 1 deletions

View File

@ -2496,7 +2496,7 @@ int SDL_ConvertEventToRenderCoordinates(SDL_Renderer *renderer, SDL_Event *event
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);
SDL_RenderCoordinatesFromWindow(renderer, event->drop.x, event->drop.y, &event->drop.x, &event->drop.y);
}
}
return 0;