From 328a64fbdc9d9a1bf2dd033fdda8fa7337efe883 Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 17 Feb 2023 21:18:02 -0700 Subject: [PATCH] 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. --- Userland/Services/WindowServer/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }