Commit 569fa3f57f778344439d4a0990b64b1363c46c82

Sam Lantinga 2022-12-09T10:13:18

Added test event logging for SDL_WINDOWEVENT_ICCPROF_CHANGED and SDL_WINDOWEVENT_DISPLAY_CHANGED

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 73ddd6e..e0dfbcc 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -1536,6 +1536,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 %d", 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);