ladybird/Userland/Applications/DisplaySettings
Andreas Kling 3046b3467c DisplaySettings: Improve wallpaper preview code
Previously, this code would create a bitmap with the size of the screen
resolution, draw the new wallpaper into it, and then scale it down for
display inside the MonitorWidget.

This was done on every paint event, which made the code quite slow and
allocation-happy.

Instead of this, we now scale down the new wallpaper to a miniature
of the same scale as the little MonitorWidget screen. The miniature is
then used for tiling, etc. The miniature is cached and reused across
paint events if nothing else changes.
2021-05-20 17:52:38 +02:00
..
BackgroundSettings.gml DisplaySettings: Give the UI a facelift :^) 2021-05-20 00:03:30 +02:00
BackgroundSettingsWidget.cpp DisplaySettings: Remove icon from browse-for-wallpaper button 2021-05-20 00:13:56 +02:00
BackgroundSettingsWidget.h DisplaySettings: Give the UI a facelift :^) 2021-05-20 00:03:30 +02:00
CMakeLists.txt DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
main.cpp DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
MonitorSettings.gml DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
MonitorSettingsWidget.cpp DisplaySettings: Fix broken path to MonitorSettingsWidget's GML 2021-05-20 00:25:15 +02:00
MonitorSettingsWidget.h DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
MonitorWidget.cpp DisplaySettings: Improve wallpaper preview code 2021-05-20 17:52:38 +02:00
MonitorWidget.h DisplaySettings: Improve wallpaper preview code 2021-05-20 17:52:38 +02:00