diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-21 13:31:47 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-21 13:31:47 +0100 |
commit | 0114c61cf1699f6225b6d7a05a1972425fc74557 (patch) | |
tree | cfc893ee46dc41c5087384e1010b55ba7c0c4e88 /Userland | |
parent | 5708c12e24639362b8fc566a8d1f236000937928 (diff) | |
download | serenity-0114c61cf1699f6225b6d7a05a1972425fc74557.zip |
Userland: Turn off double buffering in QuickShow.
Since this program is primarily used to display potentially huge but still
static images, let's not put extra strain on the system by double buffering.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/qs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/qs.cpp b/Userland/qs.cpp index c6f5440815..5e0832d602 100644 --- a/Userland/qs.cpp +++ b/Userland/qs.cpp @@ -26,6 +26,8 @@ int main(int argc, char** argv) } auto* window = new GWindow; + + window->set_double_buffering_enabled(false); window->set_title(String::format("QuickShow: %s %s", path, bitmap->size().to_string().characters())); window->set_rect(200, 200, bitmap->width(), bitmap->height()); |