Refactor the AddPakPaths to make it possible to set pak's scale factor.
This is needed when adding high DPI resources.
This commit is contained in:
parent
8d3f615e61
commit
cf1009ab30
2 changed files with 7 additions and 10 deletions
|
@ -49,13 +49,7 @@ void MainDelegate::InitializeResourceBundle() {
|
|||
#endif
|
||||
|
||||
ui::ResourceBundle::InitSharedInstanceWithPakPath(path);
|
||||
|
||||
std::vector<base::FilePath> pak_paths;
|
||||
AddPakPaths(&pak_paths);
|
||||
for (auto it = pak_paths.begin(), end = pak_paths.end(); it != end; ++it) {
|
||||
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
|
||||
*it, ui::SCALE_FACTOR_NONE);
|
||||
}
|
||||
AddDataPackFromPath(&ui::ResourceBundle::GetSharedInstance(), path.DirName());
|
||||
}
|
||||
|
||||
content::ContentBrowserClient* MainDelegate::CreateContentBrowserClient() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue