mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
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.
This commit is contained in:
parent
15d4903efb
commit
328a64fbdc
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue