Show current display server in Editor window tooltip

(cherry picked from commit 62968dd437)
This commit is contained in:
2025-02-02 18:34:47 +02:00
parent 096651f4c1
commit 0a4cb9e9b1
5 changed files with 30 additions and 1 deletions

View File

@@ -166,6 +166,18 @@ bool SDLPlatform::HandleEvent(SDL_Event& event)
return true;
}
String SDLPlatform::GetDisplayServer()
{
#if PLATFORM_LINUX
String driver(SDL_GetCurrentVideoDriver());
if (driver.Length() > 0)
driver[0] = StringUtils::ToUpper(driver[0]);
return driver;
#else
return String::Empty;
#endif
}
BatteryInfo SDLPlatform::GetBatteryInfo()
{
BatteryInfo info;