diff options
Diffstat (limited to 'ui/base/resource/resource_bundle_aurax11.cc')
-rw-r--r-- | ui/base/resource/resource_bundle_aurax11.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/base/resource/resource_bundle_aurax11.cc b/ui/base/resource/resource_bundle_aurax11.cc index f2b8bf0..ed2873f 100644 --- a/ui/base/resource/resource_bundle_aurax11.cc +++ b/ui/base/resource/resource_bundle_aurax11.cc @@ -37,11 +37,12 @@ void ResourceBundle::LoadCommonResources() { AddDataPackFromPath(GetResourcesPakFilePath("chrome.pak"), SCALE_FACTOR_100P); AddDataPackFromPath(GetResourcesPakFilePath( - "chrome_100_percent.pak"), - SCALE_FACTOR_100P); - AddOptionalDataPackFromPath(GetResourcesPakFilePath( - "chrome_200_percent.pak"), - SCALE_FACTOR_200P); + "chrome_100_percent.pak"), SCALE_FACTOR_100P); + + if (ui::IsScaleFactorSupported(SCALE_FACTOR_200P)) { + AddOptionalDataPackFromPath(GetResourcesPakFilePath( + "chrome_200_percent.pak"), SCALE_FACTOR_200P); + } } gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) { |