mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
WindowServer: Enable screen capture to span multiple screens
This enables the shot utility to capture all screens or just one, and enables the Magnifier application to track the mouse cursor across multiple screens.
This commit is contained in:
parent
61af9d882e
commit
f232cb8efe
6 changed files with 99 additions and 14 deletions
|
@ -64,6 +64,13 @@ Compositor::Compositor()
|
|||
init_bitmaps();
|
||||
}
|
||||
|
||||
const Gfx::Bitmap* Compositor::cursor_bitmap_for_screenshot(Badge<ClientConnection>, Screen& screen) const
|
||||
{
|
||||
if (!m_current_cursor)
|
||||
return nullptr;
|
||||
return &m_current_cursor->bitmap(screen.scale_factor());
|
||||
}
|
||||
|
||||
const Gfx::Bitmap& Compositor::front_bitmap_for_screenshot(Badge<ClientConnection>, Screen& screen) const
|
||||
{
|
||||
return *m_screen_data[screen.index()].m_front_bitmap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue