Move GetDisplayServer to LinuxPlatform (add support for custom platform scripting api)
#2800
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user