Skip to content
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

Merged
merged 15 commits into from Feb 10, 2021

Conversation

meisenzahl
Copy link
Member

Related to #130

@meisenzahl
Copy link
Member Author

@cassidyjames Could you maybe test this with LoDPI (e.g. Pinebook Pro) and HiDPI hardware?

@cassidyjames cassidyjames requested review from cassidyjames and a team September 19, 2020 17:13
Copy link
Contributor

@cassidyjames cassidyjames left a 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.

dpi_combo.append_text (_("LoDPI"));
dpi_combo.append_text (_("Pixel Doubled"));
dpi_combo.append_text (_("LoDPI") + " (1×)");
int max_scale = height / 768;
Copy link
Contributor

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

Copy link
Contributor

@cassidyjames cassidyjames left a 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 😭

@meisenzahl
Copy link
Member Author

@cassidyjames this is really dumb now 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants