Load content_shell.pak for current scale factor

This commit is contained in:
Cheng Zhao 2016-01-05 10:20:02 +08:00
parent 33a9551410
commit ae14829472

View file

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