Load content_shell.pak for current scale factor
This commit is contained in:
parent
33a9551410
commit
ae14829472
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue