mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Mark the two Regions used GraphicsBitmaps as explicitly shared.
This fixes a goofy problem where forking a GUI process would cowify the GraphicsBitmap for everyone making a hue confusing mess.
This commit is contained in:
parent
d1af5c97ca
commit
76a2881793
3 changed files with 11 additions and 1 deletions
|
@ -117,6 +117,8 @@ public:
|
|||
const VMObject& vmo() const { return *m_vmo; }
|
||||
VMObject& vmo() { return *m_vmo; }
|
||||
|
||||
void set_shared(bool shared) { m_shared = shared; }
|
||||
|
||||
RetainPtr<Region> clone();
|
||||
bool contains(LinearAddress laddr) const
|
||||
{
|
||||
|
@ -156,6 +158,7 @@ public:
|
|||
String name;
|
||||
bool is_readable { true };
|
||||
bool is_writable { true };
|
||||
bool m_shared { false };
|
||||
Bitmap cow_map;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue