summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-24 22:58:53 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-25 14:39:28 +0200
commit6bb53d6a80c9bc7e88876fa6774a253aa0ec2af5 (patch)
treee3ed22561cbe35bcc9f588e062e61abac6fbb57e /.clang-format
parent143443e0b6412cd7f5a702e5b190bea60da733fe (diff)
downloadserenity-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