summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-04-07 19:22:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-04-07 19:24:37 +0200
commitefba539f93bc9800589c03d1538843afed56161e (patch)
tree5792454e5b589f423258e8f8b154df1c3857197f /scene/2d
parent12b84eb9f488d28f3b787fd745fd3dcfa254cab6 (diff)
Fix build on older GCC versions
Travis builds would fail with: ./drivers/gles3/rasterizer_storage_gles3.h:1018:19: error: ISO C++ forbids initialization of member 'fixed_fps' [-fpermissive]
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/canvas_item.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp
index 9ac12de45e..b1db5bbfd8 100644
--- a/scene/2d/canvas_item.cpp
+++ b/scene/2d/canvas_item.cpp
@@ -682,9 +682,7 @@ Vector2 CanvasItem::make_canvas_pos_local(const Vector2 &screen_point) const {
ERR_FAIL_COND_V(!is_inside_tree(), screen_point);
- Transform2D local_matrix = (get_canvas_transform() *
- get_global_transform())
- .affine_inverse();
+ Transform2D local_matrix = (get_canvas_transform() * get_global_transform()).affine_inverse();
return local_matrix.xform(screen_point);
}