Skip to content

Commit

Permalink
WindowServer: Fix drawing wallpaper on additional screens
Browse files Browse the repository at this point in the history
We need to translate the source rectangle relative to the screen
location when blitting from the wallpaper bitmap.
  • Loading branch information
tomuta authored and linusg committed Feb 19, 2023
1 parent 15d4903 commit 328a64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Services/WindowServer/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 328a64f

Please sign in to comment.