1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-17 14:31:00 +00:00
serenity/Base/res
Nico Weber d551263b11 LibGfx: Make it possible to apply an (integer) scale to a Painter
This adds a scale factor to Painter, which will be used for HighDPI
support. It's also a step towards general affine transforms on Painters.

All of Painter's public API takes logical coordinates, while some
internals deal with physical coordinates now. If scale == 1, logical
and physical coordinates are the same. For scale == 2, a 200x100 bitmap
would be covered by a logical {0, 0, 100, 50} rect, while its physical
size would be {0, 0, 200, 100}.

Most of Painter's functions just assert that scale() == 1 is for now,
but most functions called by WindowServer are updated to handle
arbitrary (integer) scale.

Also add a new Demo "LibGfxScaleDemo" that covers the converted
functions and that can be used to iteratively add scaling support
to more functions.

To make Painter's interface deal with logical coordinates only,
make translation() and clip_rect() non-public.
2021-01-12 23:32:54 +01:00
..
apps LibGfx: Make it possible to apply an (integer) scale to a Painter 2021-01-12 23:32:54 +01:00
cursors WindowServer: Add the ability to animate cursors 2020-12-17 19:40:05 +01:00
emoji Base: Add information box emoji 2020-07-06 23:40:35 +02:00
fonts LibGfx+FontEditor+Fonts: Add family, size and weight metadata to fonts 2020-10-25 10:12:03 +01:00
graphics Base: Create /res/graphics/ and relocate system art assets 2020-08-27 15:38:02 +02:00
html Base+LibJS+LibWeb: Make prettier clean 2020-12-27 21:25:27 +01:00
icons Utilities: Add a disk space usage analyzation program. 2021-01-08 17:08:48 +01:00
js/Spreadsheet Spreadsheet: Add a 'contents' getter/setter to Position 2020-12-29 00:58:43 +01:00
keymaps Keymaps: Created a new keymap for Italian keyboards. 2021-01-06 09:32:08 +01:00
themes Revert "Themes: Tweak "Sunshine" theme colors slightly" 2021-01-12 08:49:18 +01:00
wallpapers Base: Add back the OG grid wallpaper from back in the day, now as a PNG 2020-04-30 12:31:02 +02:00
pci.ids Misc: Import pci.ids file version 2019.08.08 2019-08-14 13:12:54 +02:00
serenity.ansi.txt RetroFetch: Add a silly neofetch-like program. 2019-05-13 04:54:48 +02:00
welcome.txt DevTools: Remove VisualBuilder and FormCompiler 2020-10-01 21:07:12 +02:00