serenity/Documentation
Nico Weber e87b8a79ed WindowServer: Make HighDPI aware
Almost all logic stays in "logical" (unscaled coordinates), which
means the patch is small and things like DnD, window moving and
resizing, menu handling, menuapplets, etc all work without changes.

Screen knows about phyiscal coordinates and mouse handling internally is
in physical coordinates (so that two 1 pixel movements in succession can
translate to one 1 logical coordinate mouse movement -- only a single
event is sent in this case, on the 2nd moved pixel).

Compositor also knows about physical pixels for its backbuffers. This is
a temporary state -- in a follow-up, I'll try to let Bitmaps know about
their intrinsic scale, then Compositor won't have to know about pixels
any longer. Most of Compositor's logic stays in view units, just
blitting to and from back buffers and the cursor save buffer has to be
done in pixels. The back buffer Painter gets a scale applied which
transparently handles all drawing. (But since the backbuffer and cursor
save buffer are also HighDPI, they currently need to be drawn using a
hack temporary unscaled Painter object. This will also go away once
Bitmaps know about their intrinsic scale.)

With this, editing WindowServer.ini to say

  Width=800
  Height=600
  ScaleFactor=2

and booting brings up a fully-functional HighDPI UI.
(Except for minimizing windows, which will crash the window server
until #4932 is merged. And I didn't test the window switcher since the
win-tab shortcut doesn't work on my system.) It's all pixel-scaled,
but it looks pretty decent :^)
2021-01-15 19:10:16 +01:00
..
Browser LibWeb: Rename WebContentView => OutOfProcessWebView 2020-08-17 18:05:35 +02:00
BuildInstructions.md Meta+Docs+CI: Require clang-format >= 11 2020-12-31 21:51:00 +01:00
CLionConfiguration.md Meta: Update CLion and WSL configuration documentations 2020-05-17 23:07:35 +02:00
CodingStyle.md Meta+Docs+CI: Require clang-format >= 11 2020-12-31 21:51:00 +01:00
HardwareCompatibility.md Meta: Add Hardware Compatbility List 2020-12-16 17:30:09 +01:00
HighDPI.md WindowServer: Make HighDPI aware 2021-01-15 19:10:16 +01:00
INSTALL.md Meta: Update install guide with link to hardware compatibility list 2020-12-24 11:02:43 +01:00
NotesOnWSL.md Docs: Update WSL notes with some workarounds for known issues 2020-12-30 20:31:30 +01:00
SmartPointers.md Documentation: Tweak document about smart pointers a bit 2020-03-20 14:41:02 +01:00
UsingQtCreator.md Documentation: UsingQtCreator: Include Userland in includes paths 2021-01-14 16:19:53 +01:00
VirtualBox.md Documentation: Add an installation guide for VirtualBox 2020-08-05 10:52:48 +02:00
VirtualBox_Creation_Reference.png Documentation: Add an installation guide for VirtualBox 2020-08-05 10:52:48 +02:00