diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-07-09 14:34:50 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-07-14 09:28:38 +0000 |
commit | 7345ef65af262eb0b958905d7175cc836821cf25 (patch) | |
tree | a344fd1c56a8c6eb12aa77d4fc1d26e151f57eb1 /src/core/resource_bundle_qt.cpp | |
parent | c6f3565ed92d9f7fabd9403d70076a109b263065 (diff) |
Add 200 percent image resources
Move out the resources intended for 100% scale factor from
qtwebengine_resources.pak into a separate _100p.pak, and add also a
_200p.pak.
This fixes crashes and artifacts on Windows with high-DPI setups.
[ChangeLog] qtwebengine_resources_100p.pak and
qtwebengine_resources_200p.pak have been added alongside
qtwebengine_resources.pak. Depending on the target environment
either one or both have to be deployed.
Task-number: QTBUG-47018
Change-Id: I1f305ada3ca4e4ae356276a59e0e92c94cca2d3f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/core/resource_bundle_qt.cpp')
-rw-r--r-- | src/core/resource_bundle_qt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/resource_bundle_qt.cpp b/src/core/resource_bundle_qt.cpp index 3e9c6ad43..932f40af8 100644 --- a/src/core/resource_bundle_qt.cpp +++ b/src/core/resource_bundle_qt.cpp @@ -44,7 +44,9 @@ namespace ui { void ResourceBundle::LoadCommonResources() { // We repacked the resources we need and installed them. now let chromium mmap that file. - AddDataPackFromPath(WebEngineLibraryInfo::getPath(QT_RESOURCES_PAK), SCALE_FACTOR_100P); + AddDataPackFromPath(WebEngineLibraryInfo::getPath(QT_RESOURCES_PAK), SCALE_FACTOR_NONE); + AddDataPackFromPath(WebEngineLibraryInfo::getPath(QT_RESOURCES_100P_PAK), SCALE_FACTOR_100P); + AddDataPackFromPath(WebEngineLibraryInfo::getPath(QT_RESOURCES_200P_PAK), SCALE_FACTOR_200P); } gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id, ImageRTL rtl) |