diff options
author | Tom <tomut@yahoo.com> | 2023-02-17 21:18:02 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-19 01:15:26 +0100 |
commit | 328a64fbdc9d9a1bf2dd033fdda8fa7337efe883 (patch) | |
tree | bfee8af18ae00fde4afbfd5f3ad02e4f10f6a34f /Userland/Services/WindowServer | |
parent | 15d4903efb5f9ce875e996dfa85082ebd97c36da (diff) | |
download | serenity-328a64fbdc9d9a1bf2dd033fdda8fa7337efe883.zip |
WindowServer: Fix drawing wallpaper on additional screens
We need to translate the source rectangle relative to the screen
location when blitting from the wallpaper bitmap.
Diffstat (limited to 'Userland/Services/WindowServer')
-rw-r--r-- | Userland/Services/WindowServer/Compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Compositor.cpp b/Userland/Services/WindowServer/Compositor.cpp index 26e4e74834..40860fa334 100644 --- a/Userland/Services/WindowServer/Compositor.cpp +++ b/Userland/Services/WindowServer/Compositor.cpp @@ -320,7 +320,7 @@ void Compositor::compose() painter.draw_tiled_bitmap(rect, *m_wallpaper); } else if (m_wallpaper_mode == WallpaperMode::Stretch) { VERIFY(screen.compositor_screen_data().m_wallpaper_bitmap); - painter.blit(rect.location(), *screen.compositor_screen_data().m_wallpaper_bitmap, rect); + painter.blit(rect.location(), *screen.compositor_screen_data().m_wallpaper_bitmap, rect.translated(-screen.location())); } else { VERIFY_NOT_REACHED(); } |