Update SetScreenInstance call for linux
This commit is contained in:
parent
88d8effa01
commit
c6f198a1af
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void BrowserMainParts::PostMainMessageLoopRun() {
|
|||
int BrowserMainParts::PreCreateThreads() {
|
||||
#if defined(USE_AURA)
|
||||
gfx::Screen* screen = views::CreateDesktopScreen();
|
||||
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen);
|
||||
gfx::Screen::SetScreenInstance(screen);
|
||||
#if defined(USE_X11)
|
||||
views::LinuxUI::instance()->UpdateDeviceScaleFactor(
|
||||
screen->GetPrimaryDisplay().device_scale_factor());
|
||||
|
|
Loading…
Reference in a new issue