From 3736005fc451b5e219c903d6bf120c965a42f78f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 9 Dec 2022 10:13:18 -0800 Subject: [PATCH] Added test event logging for SDL_WINDOWEVENT_ICCPROF_CHANGED and SDL_WINDOWEVENT_DISPLAY_CHANGED --- src/test/SDL_test_common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index b41325f6d..67a4b5819 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -1532,6 +1532,12 @@ static void SDLTest_PrintEvent(SDL_Event *event) case SDL_WINDOWEVENT_HIT_TEST: SDL_Log("SDL EVENT: Window %" SDL_PRIu32 " hit test", event->window.windowID); break; + case SDL_WINDOWEVENT_ICCPROF_CHANGED: + SDL_Log("SDL EVENT: Window %" SDL_PRIu32 " ICC profile changed", event->window.windowID); + break; + case SDL_WINDOWEVENT_DISPLAY_CHANGED: + SDL_Log("SDL EVENT: Window %" SDL_PRIu32 " display changed to %" SDL_PRIs32 "", event->window.windowID, event->window.data1); + break; default: SDL_Log("SDL EVENT: Window %" SDL_PRIu32 " got unknown event 0x%4.4x", event->window.windowID, event->window.event);