From d6af55bc04c76d1b33a440f26b062f84abdb037a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Jan 2026 11:51:47 +0100 Subject: [PATCH] Display the complete SDL version. --- OpenRA.Platforms.Default/Sdl2PlatformWindow.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs index 7f365731b4..6d0efe276d 100644 --- a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs +++ b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs @@ -168,7 +168,7 @@ namespace OpenRA.Platforms.Default Log.Write("graphics", $"SDL initialisation failed: {SDL.SDL_GetError()}"); SetSDLAttributes(profile); - Console.WriteLine($"Using SDL 2 with OpenGL ({profile}) renderer"); + Console.WriteLine($"Using SDL {GetSDLVersion()} with OpenGL ({profile}) renderer"); if (videoDisplay < 0 || videoDisplay >= DisplayCount) videoDisplay = 0; @@ -525,6 +525,12 @@ namespace OpenRA.Platforms.Default } } + static string GetSDLVersion() + { + SDL.SDL_GetVersion(out var version); + return version.major + "." + version.minor + "." + version.patch; + } + static void SetSDLAttributes(GLProfile profile) { SDL.SDL_GL_ResetAttributes();