diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-20 22:41:07 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-20 22:41:07 -0700 |
commit | 63bbc13fffeaa14f15ff9270f7d6355fab4d3d56 (patch) | |
tree | 06034d16c0fd17f79fa524ecf5ec38d46fd91f9a /components/script/dom/document.rs | |
parent | 5fc511a40e4f5710783cd76875fd119997307ad8 (diff) | |
parent | 568d454ca628181d41a29418d584489cbfc83c12 (diff) | |
download | servo-63bbc13fffeaa14f15ff9270f7d6355fab4d3d56.tar.gz servo-63bbc13fffeaa14f15ff9270f7d6355fab4d3d56.zip |
Auto merge of #11314 - metajack:window-hi-dpi, r=mbrubeck
Make Servo DPI aware on Windows
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because testing would be overly difficult
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
This implements system level DPI awareness for Windows. It has three
parts:
1. Add a application manifest which is copied alongside servo.exe during
build that declares our DPI awareness level. This is needed otherwise
DPI queries will return 96dpi and our application will be upscaled on
high DPI displays.
2. Rename hidpi_factor to avoid confusion with Glutin's hidpi_factor
which does something else.
3. Correctly convert windows sizes on window creation for
Windows. Unlike OS X, Windows uses device pixels for window creation.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11314)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/document.rs')
0 files changed, 0 insertions, 0 deletions