Show current display server in Editor window tooltip

This commit is contained in:
2025-02-02 18:34:47 +02:00
parent c660fac524
commit 62968dd437
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;