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

Cursors: Add new Magnifying glass cursor

There are a few places in the system where this could be useful,
such as PixelPaint and the MandelBrot demo. It seems general enough
that it is probably useful to have it as a system-wide cursor rather
than loading it manually each time.
This commit is contained in:
Mustafa Quraish 2021-08-31 22:19:31 -04:00 committed by Andreas Kling
parent 30ce1d8562
commit 30e91ecff6
8 changed files with 8 additions and 0 deletions

View file

@ -111,6 +111,8 @@ RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor)
return WindowManager::the().disallowed_cursor();
case Gfx::StandardCursor::Eyedropper:
return WindowManager::the().eyedropper_cursor();
case Gfx::StandardCursor::Zoom:
return WindowManager::the().zoom_cursor();
default:
VERIFY_NOT_REACHED();
}