linux: Set device scaling factor
This commit is contained in:
parent
9f978cc19f
commit
6ca7767f09
1 changed files with 6 additions and 3 deletions
|
@ -212,10 +212,13 @@ void BrowserMainParts::PostMainMessageLoopRun() {
|
||||||
|
|
||||||
int BrowserMainParts::PreCreateThreads() {
|
int BrowserMainParts::PreCreateThreads() {
|
||||||
#if defined(USE_AURA)
|
#if defined(USE_AURA)
|
||||||
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE,
|
gfx::Screen* screen = views::CreateDesktopScreen();
|
||||||
views::CreateDesktopScreen());
|
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen);
|
||||||
|
#if defined(USE_X11)
|
||||||
|
views::LinuxUI::instance()->UpdateDeviceScaleFactor(
|
||||||
|
screen->GetPrimaryDisplay().device_scale_factor());
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue