mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
WindowServer: Fix caching stretched wallpaper for multiple screens
This creates a cached bitmap for each unique screen resolution, which allows us to share it between displays with the same resolution. If the resolution is the same as the wallpaper, we can just use the wallpaper as-is.
This commit is contained in:
parent
5b77346f53
commit
15d4903efb
3 changed files with 33 additions and 15 deletions
|
@ -164,6 +164,7 @@ public:
|
|||
|
||||
Gfx::IntSize physical_size() const { return { physical_width(), physical_height() }; }
|
||||
|
||||
Gfx::IntPoint location() const { return m_virtual_rect.location(); }
|
||||
Gfx::IntSize size() const { return { m_virtual_rect.width(), m_virtual_rect.height() }; }
|
||||
Gfx::IntRect rect() const { return m_virtual_rect; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue