mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
Load content_shell.pak for current scale factor
This commit is contained in:
@@ -48,9 +48,10 @@ void MainDelegate::InitializeResourceBundle() {
|
||||
path = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak"));
|
||||
#endif
|
||||
|
||||
ui::ResourceBundle::InitSharedInstanceWithLocale("", NULL,
|
||||
ui::ResourceBundle::InitSharedInstanceWithLocale("", nullptr,
|
||||
ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES);
|
||||
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(path, ui::SCALE_FACTOR_100P);
|
||||
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
|
||||
path, ui::GetSupportedScaleFactors()[0]);
|
||||
AddDataPackFromPath(&ui::ResourceBundle::GetSharedInstance(), path.DirName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user