diff options
| author | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
| commit | f8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch) | |
| tree | 3b798318132cca7eccfbca5818ab55656a2896d7 /scene/2d/position_2d.cpp | |
| parent | 1d418afe863c9e553b69174ce63aef203c46d2f0 (diff) | |
| download | godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip | |
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6e3e905b94b8764e99491e608122261.
Diffstat (limited to 'scene/2d/position_2d.cpp')
| -rw-r--r-- | scene/2d/position_2d.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/scene/2d/position_2d.cpp b/scene/2d/position_2d.cpp index a25be18cb..39fc6352e 100644 --- a/scene/2d/position_2d.cpp +++ b/scene/2d/position_2d.cpp @@ -31,19 +31,18 @@ void Position2D::_draw_cross() { - draw_line(Point2(-10,0),Point2(+10,0),Color(1,0.5,0.5)); - draw_line(Point2(0,-10),Point2(0,+10),Color(0.5,1,0.5)); - + draw_line(Point2(-10, 0), Point2(+10, 0), Color(1, 0.5, 0.5)); + draw_line(Point2(0, -10), Point2(0, +10), Color(0.5, 1, 0.5)); } Rect2 Position2D::get_item_rect() const { - return Rect2(Point2(-10,-10),Size2(20,20)); + return Rect2(Point2(-10, -10), Size2(20, 20)); } void Position2D::_notification(int p_what) { - switch(p_what) { + switch (p_what) { case NOTIFICATION_ENTER_TREE: { @@ -57,9 +56,7 @@ void Position2D::_notification(int p_what) { } break; } - } -Position2D::Position2D() -{ +Position2D::Position2D() { } |
