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

WindowServer+Magnifier: Make Magnifier buttery smooth :^)

This patch moves the magnifier rect computation over to the server side
to ensure that the mouse cursor position and the screen image never get
out of sync.
This commit is contained in:
Andreas Kling 2021-06-07 10:20:50 +02:00
parent 0ea1fd2d54
commit cb295ab644
5 changed files with 18 additions and 9 deletions

View file

@ -23,8 +23,6 @@ private:
void sync();
Gfx::IntPoint m_mouse_position;
int m_scale_factor { 2 };
int m_desktop_display_scale { 1 };
RefPtr<Gfx::Bitmap> m_grabbed_bitmap;
};