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

Magnifier: Allow locking location at current cursor position

This commit is contained in:
FrHun 2022-12-04 19:20:57 +01:00 committed by Sam Atkins
parent 6d4e37138e
commit 837625e422
3 changed files with 22 additions and 1 deletions

View file

@ -27,6 +27,7 @@ public:
if (!pause)
m_frame_offset_from_head = 0;
}
void lock_location(bool);
void display_previous_frame();
void display_next_frame();
RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; };
@ -45,4 +46,5 @@ private:
CircularQueue<RefPtr<Gfx::Bitmap>, 512> m_grabbed_bitmaps {};
ssize_t m_frame_offset_from_head { 0 };
bool m_pause_capture { false };
Optional<Gfx::IntPoint> m_locked_location {};
};