mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 03:15:07 +00:00
WindowServer: Map shared GraphicsBitmaps read-only on the server side.
This commit is contained in:
parent
f9fcb682ec
commit
a47f33bed3
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ GraphicsBitmap::GraphicsBitmap(Process& process, const Size& size)
|
||||||
{
|
{
|
||||||
auto& server = WSEventLoop::the().server_process();
|
auto& server = WSEventLoop::the().server_process();
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, true);
|
m_server_region = server.allocate_region_with_vmo(LinearAddress(), size_in_bytes, move(vmo), 0, "GraphicsBitmap (server)", true, false);
|
||||||
m_server_region->set_shared(true);
|
m_server_region->set_shared(true);
|
||||||
}
|
}
|
||||||
m_data = (RGBA32*)m_server_region->linearAddress.asPtr();
|
m_data = (RGBA32*)m_server_region->linearAddress.asPtr();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue