-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 3× scaling setting #262
The head ref may contain hidden characters: "add-3\u00D7-scaling-setting"
Add 3× scaling setting #262
Conversation
@cassidyjames Could you maybe test this with LoDPI (e.g. Pinebook Pro) and HiDPI hardware? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my 27" 2560×1440 display, this shows all three options (1x, 2x, and 3x scaling). 2x is debatable, but 3x makes no sense.
I wonder if we should restrict this to showing options for the equivalent of 768 vertical pixels, since that's our minimum supported resolution? So on a 27" 1440p display, we wouldn't show 2x or 3x because 1440/2 = 720, and 1440/3 = 480—far below our supported resolution.
src/Views/DisplaysView.vala
Outdated
dpi_combo.append_text (_("LoDPI")); | ||
dpi_combo.append_text (_("Pixel Doubled")); | ||
dpi_combo.append_text (_("LoDPI") + " (1×)"); | ||
int max_scale = height / 768; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably pull this out into a constant so it's more obvious where it's coming from and what it represents, e.g. MIN_SUPPORTED_HEIGHT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, now when I use this on a HiDPI laptop with a loDPI external display, the scaling factor option is disabled completely (forced to 1×). I wonder if we should just make sure at least one display or maybe the primary display meets the 768 minimum height when considering the scaling factors?
I'm not sure how this would behave without having a previous display arrangement (I previously manually set my laptop resolution to half and the scaling-factor to 1×), but it would not be fun to accidentally get into a case where your HiDPI laptop was forced to LoDPI because you connected an external display, without it also halving the resolution...
Gah multi-monitor and multi-scaling-factor is so complex to handle all the edge cases 😭
1ecde68
to
c88bae4
Compare
@cassidyjames this is really dumb now 😁 |
Related to #130