mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Fixed LineAction and RectAction.
This commit is contained in:
parent
918a246ef4
commit
004bf8e812
@ -84,6 +84,10 @@ void LineAction::commit_action(PaintCanvas *canvas) {
|
||||
mouse_start_pos_set = false;
|
||||
}
|
||||
|
||||
bool LineAction::can_commit() {
|
||||
return true;
|
||||
}
|
||||
|
||||
LineAction::LineAction() {
|
||||
mouse_start_pos_set = false;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ class LineAction : public PaintAction {
|
||||
public:
|
||||
void do_action(PaintCanvas *canvas, const Array &data);
|
||||
void commit_action(PaintCanvas *canvas);
|
||||
bool can_commit();
|
||||
|
||||
LineAction();
|
||||
~LineAction();
|
||||
|
@ -91,6 +91,10 @@ void RectAction::commit_action(PaintCanvas *canvas) {
|
||||
mouse_start_pos_set = false;
|
||||
}
|
||||
|
||||
bool RectAction::can_commit() {
|
||||
return true;
|
||||
}
|
||||
|
||||
RectAction::RectAction() {
|
||||
mouse_start_pos_set = false;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ class RectAction : public PaintAction {
|
||||
public:
|
||||
void do_action(PaintCanvas *canvas, const Array &data);
|
||||
void commit_action(PaintCanvas *canvas);
|
||||
bool can_commit();
|
||||
|
||||
RectAction();
|
||||
~RectAction();
|
||||
|
Loading…
Reference in New Issue
Block a user