Move GetDisplayServer to LinuxPlatform (add support for custom platform scripting api)

#2800
This commit is contained in:
Wojtek Figat
2026-02-12 09:24:11 +01:00
parent 3c5c6f9883
commit c4d20f06ee
12 changed files with 49 additions and 35 deletions

View File

@@ -1691,6 +1691,14 @@ void* SDLPlatform::GetXDisplay()
return X11Impl::xDisplay;
}
String SDLPlatform::GetDisplayServer()
{
String driver(SDL_GetCurrentVideoDriver());
if (driver.Length() > 0)
driver[0] = StringUtils::ToUpper(driver[0]);
return driver;
}
void SDLPlatform::SetHighDpiAwarenessEnabled(bool enable)
{
base::SetHighDpiAwarenessEnabled(enable);