mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
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:
parent
5708c12e24
commit
0114c61cf1
Notes:
sideshowbarker
2024-07-19 14:58:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0114c61cf16
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue