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

Magnifier: Use a GUI::DisplayLink to drive the screen captures

This ensures that we don't try to update more often than the screen
is updated. It also avoids doing synchronous IPC in paint_event().
This commit is contained in:
Andreas Kling 2021-06-07 09:35:07 +02:00
parent 61c56e75f4
commit 0ea1fd2d54
3 changed files with 13 additions and 8 deletions

View file

@ -84,7 +84,6 @@ int main(int argc, char** argv)
window->show();
magnifier.track_cursor_globally();
magnifier.start_timer(16);
return app->exec();
}