summaryrefslogtreecommitdiff
path: root/Documentation/HighDPI.md
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-01-15 19:02:17 -0500
committerAndreas Kling <kling@serenityos.org>2021-01-17 08:06:12 +0100
commitf37f281f89e925d68502fdfddaf4b4d591a83404 (patch)
tree7cf51a31ee6518b69883736f7600f93306cac2c8 /Documentation/HighDPI.md
parent05dbfe9ab60becc862fd8f51a8be85795df20c31 (diff)
downloadserenity-f37f281f89e925d68502fdfddaf4b4d591a83404.zip
DisplaySettings: Add UI for switching the scale factor
For now, only support 1x and 2x scale. I tried doing something "smarter" first where the UI would try to keep the physical resolution constant when toggling between 1x and 2x, but many of the smaller 1x resolutions map to 2x logical resolutions that Compositor rejects (e.g. 1024x768 becomes 512x384, which is less than the minimum 640x480 that Compositor wants) and it felt complicated and overly magical. So this instead just gives you a 1x/2x toggle and a dropdown with logical (!) resolutions. That is, 800x600 @ 2x gives you a physical resolution of 1600x1200. If we don't like this after trying it for a while, we can change the UI then.
Diffstat (limited to 'Documentation/HighDPI.md')
-rw-r--r--Documentation/HighDPI.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/HighDPI.md b/Documentation/HighDPI.md
index 885cebbd83..8c946b9dd1 100644
--- a/Documentation/HighDPI.md
+++ b/Documentation/HighDPI.md
@@ -31,8 +31,8 @@ The plan is to have all applications use highdpi backbuffers eventually. It'll t
0. Add some scaling support to Painter. Make it do 2x nearest neighbor scaling of everything at paint time for now.
1. Add scale factor concept to WindowServer. WindowServer has a scaled framebuffer/backbuffer. All other bitmaps (both other bitmaps in WindowServer, as well as everything WindowServer-client-side) are always stored at 1x and scaled up when they're painted to the framebuffer. Things will look fine at 2x, but pixely (but window gradients will be smooth already).
2. Let DisplaySettings toggle it WindowServer scale. Now it's possible to switch to and from HighDPI dynamically, using UI.
-2. Come up with a system to have scale-dependent bitmap and font resources. Use that to use a high-res cursor bitmaps and high-res menu bar text painting in window server. Menu text and cursor will look less pixely. (And window frames too, I suppose.)
-3. Let apps opt in to high-res window framebuffers, and convert all apps one-by-one
-4. Remove high-res window framebuffer opt-in since all apps have it now.
+3. Come up with a system to have scale-dependent bitmap and font resources. Use that to use a high-res cursor bitmaps and high-res menu bar text painting in window server. Menu text and cursor will look less pixely. (And window frames too, I suppose.)
+4. Let apps opt in to high-res window framebuffers, and convert all apps one-by-one
+5. Remove high-res window framebuffer opt-in since all apps have it now.
-We're currently before point 2.
+We're currently before point 3.