Fix build on Linux

This commit is contained in:
2025-04-08 00:25:05 +03:00
parent da3b60b606
commit 2a2652302f
2 changed files with 24 additions and 24 deletions

View File

@@ -36,9 +36,9 @@ namespace
bool SDLPlatform::Init()
{
#if PLATFORM_LINUX
if (CommandLine::Options.X11)
if (CommandLine::Options.X11.IsTrue())
SDL_SetHintWithPriority(SDL_HINT_VIDEO_DRIVER, "x11", SDL_HINT_OVERRIDE);
else if (CommandLine::Options.Wayland)
else if (CommandLine::Options.Wayland.IsTrue())
SDL_SetHintWithPriority(SDL_HINT_VIDEO_DRIVER, "wayland", SDL_HINT_OVERRIDE);
else
{