mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-03 22:55:55 +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;
|
mouse_start_pos_set = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool LineAction::can_commit() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
LineAction::LineAction() {
|
LineAction::LineAction() {
|
||||||
mouse_start_pos_set = false;
|
mouse_start_pos_set = false;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ class LineAction : public PaintAction {
|
|||||||
public:
|
public:
|
||||||
void do_action(PaintCanvas *canvas, const Array &data);
|
void do_action(PaintCanvas *canvas, const Array &data);
|
||||||
void commit_action(PaintCanvas *canvas);
|
void commit_action(PaintCanvas *canvas);
|
||||||
|
bool can_commit();
|
||||||
|
|
||||||
LineAction();
|
LineAction();
|
||||||
~LineAction();
|
~LineAction();
|
||||||
|
@ -91,6 +91,10 @@ void RectAction::commit_action(PaintCanvas *canvas) {
|
|||||||
mouse_start_pos_set = false;
|
mouse_start_pos_set = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool RectAction::can_commit() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
RectAction::RectAction() {
|
RectAction::RectAction() {
|
||||||
mouse_start_pos_set = false;
|
mouse_start_pos_set = false;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ class RectAction : public PaintAction {
|
|||||||
public:
|
public:
|
||||||
void do_action(PaintCanvas *canvas, const Array &data);
|
void do_action(PaintCanvas *canvas, const Array &data);
|
||||||
void commit_action(PaintCanvas *canvas);
|
void commit_action(PaintCanvas *canvas);
|
||||||
|
bool can_commit();
|
||||||
|
|
||||||
RectAction();
|
RectAction();
|
||||||
~RectAction();
|
~RectAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user