diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-21 19:27:23 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-21 19:27:23 +0100 |
commit | a47f33bed3c5b7860dca30a185c1e83c5a8f058b (patch) | |
tree | bbe09bbbfeeedc627d17014feddd015d33cd68cc /SharedGraphics | |
parent | f9fcb682ec76432090c6662a1dfae1720857d8d4 (diff) | |
download | serenity-a47f33bed3c5b7860dca30a185c1e83c5a8f058b.zip |
WindowServer: Map shared GraphicsBitmaps read-only on the server side.
Diffstat (limited to 'SharedGraphics')
-rw-r--r-- | SharedGraphics/GraphicsBitmap.cpp | 2 |
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(); |