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.
This commit is contained in:
Andreas Kling 2019-03-21 13:31:47 +01:00
parent 5708c12e24
commit 0114c61cf1
Notes: sideshowbarker 2024-07-19 14:58:57 +09:00

View File

@ -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());