diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-24 22:58:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-25 14:39:28 +0200 |
commit | 6bb53d6a80c9bc7e88876fa6774a253aa0ec2af5 (patch) | |
tree | e3ed22561cbe35bcc9f588e062e61abac6fbb57e /.clang-format | |
parent | 143443e0b6412cd7f5a702e5b190bea60da733fe (diff) | |
download | serenity-6bb53d6a80c9bc7e88876fa6774a253aa0ec2af5.zip |
LibGUI: Handle GUI::Window non-volatile backing store issues better
Instead of crashing when we can't make the back buffer non-volatile,
we now transition the window into single-buffered mode instead
(assuming it was originally in double-buffered mode.)
This reduces GUI fidelity a bit (by potentially making windows flicker
during repaint) but since it's only triggered in low-memory conditions,
it seems like a reasonable thing to sacrifice in order for the system
to carry on.
This patch also stops us from allocating entirely new backing stores
after the old ones were purged. If they were purged but reallocated
just fine, there's no need to allocate new memory again. We already
have fresh zero-filled pages in the existing bitmap at this point.
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions