1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

WindowServer: Remove Screen::init()

This function only did one thing: call Screen::set_resolution().
We always call that function when opening the underlying device anyway,
so this was completely redundant.

This makes the first screen compose happen ~60ms earlier on my machine.
This commit is contained in:
Andreas Kling 2021-10-25 23:45:55 +02:00
parent 47c140610d
commit 693423bbe8
2 changed files with 0 additions and 6 deletions

View file

@ -264,11 +264,6 @@ void Screen::scale_factor_changed()
constrain_pending_flush_rects();
}
void Screen::init()
{
set_resolution(true);
}
Screen& Screen::closest_to_rect(const Gfx::IntRect& rect)
{
Screen* best_screen = nullptr;