From dbcd390cdf1a6f711c8c050489ada897331b2057 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 6 Nov 2023 18:53:06 -0800
Subject: [PATCH] Log drag and drop position updates in SDL test programs
---
src/test/SDL_test_common.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 0a3360f81679..25cf72c23c46 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1820,13 +1820,16 @@ static void SDLTest_PrintEvent(const SDL_Event *event)
SDL_Log("SDL EVENT: App entered the foreground");
break;
case SDL_EVENT_DROP_BEGIN:
- SDL_Log("SDL EVENT: Drag and drop beginning");
+ SDL_Log("SDL EVENT: Drag and drop beginning in window %" SDL_PRIu32 "", event->drop.windowID);
+ break;
+ case SDL_EVENT_DROP_POSITION:
+ SDL_Log("SDL EVENT: Drag and drop moving in window %" SDL_PRIu32 ": %g,%g", event->drop.windowID, event->drop.x, event->drop.y);
break;
case SDL_EVENT_DROP_FILE:
- SDL_Log("SDL EVENT: Drag and drop file: '%s'", event->drop.data);
+ SDL_Log("SDL EVENT: Drag and drop file in window %" SDL_PRIu32 ": '%s'", event->drop.windowID, event->drop.data);
break;
case SDL_EVENT_DROP_TEXT:
- SDL_Log("SDL EVENT: Drag and drop text: '%s'", event->drop.data);
+ SDL_Log("SDL EVENT: Drag and drop text in window %" SDL_PRIu32 ": '%s'", event->drop.windowID, event->drop.data);
break;
case SDL_EVENT_DROP_COMPLETE:
SDL_Log("SDL EVENT: Drag and drop ending");