summaryrefslogtreecommitdiff
path: root/SharedGraphics
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-21 19:27:23 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-21 19:27:23 +0100
commita47f33bed3c5b7860dca30a185c1e83c5a8f058b (patch)
treebbe09bbbfeeedc627d17014feddd015d33cd68cc /SharedGraphics
parentf9fcb682ec76432090c6662a1dfae1720857d8d4 (diff)
downloadserenity-a47f33bed3c5b7860dca30a185c1e83c5a8f058b.zip
WindowServer: Map shared GraphicsBitmaps read-only on the server side.
Diffstat (limited to 'SharedGraphics')
-rw-r--r--SharedGraphics/GraphicsBitmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SharedGraphics/GraphicsBitmap.cpp b/SharedGraphics/GraphicsBitmap.cpp
index 3da6cce03c..e46f7a866e 100644
--- a/SharedGraphics/GraphicsBitmap.cpp
+++ b/SharedGraphics/GraphicsBitmap.cpp
@@ -27,7 +27,7 @@ GraphicsBitmap::GraphicsBitmap(Process& process, const Size& size)
{
auto& server = WSEventLoop::the().server_process();
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_data = (RGBA32*)m_server_region->linearAddress.asPtr();