mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
PixelPaint: Store tool cursors as NNRP<Gfx::Bitmap const>
This commit is contained in:
parent
65710bf3f7
commit
df07416171
24 changed files with 26 additions and 26 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
virtual void on_mousemove(Layer*, MouseEvent&) override;
|
||||
virtual void on_mouseup(Layer*, MouseEvent&) override;
|
||||
virtual ErrorOr<GUI::Widget*> get_properties_widget() override;
|
||||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> cursor() override
|
||||
virtual Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap const>> cursor() override
|
||||
{
|
||||
if (m_editor && m_editor->scale() != m_scale_last_created_cursor)
|
||||
refresh_editor_cursor();
|
||||
|
@ -59,7 +59,7 @@ private:
|
|||
bool m_was_drawing { false };
|
||||
bool m_has_clicked { false };
|
||||
Gfx::IntPoint m_last_position;
|
||||
NonnullRefPtr<Gfx::Bitmap> m_cursor = build_cursor();
|
||||
NonnullRefPtr<Gfx::Bitmap const> m_cursor = build_cursor();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue