Closed Bug 851197 Opened 11 years ago Closed 11 years ago

(metro-hidpi) handle dynamic changes to scaling on Metro

Categories

(Core Graveyard :: Widget: WinRT, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla22

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file)

This is a followup to bug 816709, which provided basic support for HiDPI rendering on Metro, respecting the system's ResolutionScale property. However, as noted in bug 816709 comment 25, dynamic changes (toggling Metro's 'Make everything bigger' setting) while Firefox is open are not handled properly.

We should be able to fix this by handling the LogicalDpiChanged event (which FrameworkView already registers for), similarly to how changes to the "backing scale factor" are handled by the Cocoa widget code.
With this patch, the browser responds properly to enabling/disabling the "Make everything bigger" option in Metro settings, toggling between the 100% and 140% scales (on my 13" machine, where the default is 100%; on an 11" FullHD screen, I assume it would toggle between 140% and 180%).
Assignee: nobody → jfkthame
Attachment #725556 - Flags: review?(jmathies)
Oh, one thought - do we need to consider plugins here? The Cocoa widgets version has some code to notify plugins of the change; do we need to do the same thing here?
(In reply to Jonathan Kew (:jfkthame) from comment #2)
> Oh, one thought - do we need to consider plugins here?

Nope!
Attachment #725556 - Flags: review?(jmathies) → review+
https://hg.mozilla.org/mozilla-central/rev/ee2bba86031b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: