Update SetScreenInstance call for linux

This commit is contained in:
Brian R. Bondy 2016-04-30 19:40:59 -04:00 committed by Cheng Zhao
parent 88d8effa01
commit c6f198a1af

View file

@ -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());