mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03: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
@ -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…
Reference in New Issue
Block a user