mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
3046b3467c
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. |
||
---|---|---|
.. | ||
BackgroundSettings.gml | ||
BackgroundSettingsWidget.cpp | ||
BackgroundSettingsWidget.h | ||
CMakeLists.txt | ||
main.cpp | ||
MonitorSettings.gml | ||
MonitorSettingsWidget.cpp | ||
MonitorSettingsWidget.h | ||
MonitorWidget.cpp | ||
MonitorWidget.h |