SDL: events: Make sure new display events don't overlap with sdl2-compat.

From 7a5a1b16cee62e33ba5567926497f917ead4adb7 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 22 Dec 2022 11:47:54 -0500
Subject: [PATCH] events: Make sure new display events don't overlap with
 sdl2-compat.

Reference PR #6867.
---
 include/SDL3/SDL_events.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h
index 0907ed2d5316..251f129a1c85 100644
--- a/include/SDL3/SDL_events.h
+++ b/include/SDL3/SDL_events.h
@@ -87,7 +87,8 @@ typedef enum
     SDL_LOCALECHANGED,  /**< The user's locale preferences have changed. */
 
     /* Display events */
-    SDL_DISPLAYEVENT_ORIENTATION = 0x150, /**< Display orientation has changed to data1 */
+    /* 0x150 was SDL_DISPLAYEVENT, reserve the number for sdl2-compat */
+    SDL_DISPLAYEVENT_ORIENTATION = 0x151, /**< Display orientation has changed to data1 */
     SDL_DISPLAYEVENT_CONNECTED,           /**< Display has been added to the system */
     SDL_DISPLAYEVENT_DISCONNECTED,        /**< Display has been removed from the system */
     SDL_DISPLAYEVENT_MOVED,               /**< Display has changed position */
@@ -95,6 +96,7 @@ typedef enum
     SDL_DISPLAYEVENT_LAST = SDL_DISPLAYEVENT_DISCONNECTED,
 
     /* Window events */
+    /* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */
     SDL_SYSWMEVENT     = 0x201,     /**< System specific event */
     SDL_WINDOWEVENT_SHOWN,          /**< Window has been shown */
     SDL_WINDOWEVENT_HIDDEN,         /**< Window has been hidden */