mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/tomuta
Commit: 328a64fbdc
Pull-request: https://github.com/SerenityOS/serenity/pull/17515
Reviewed-by: https://github.com/linusg ✅
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