Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-02-16 21:02:45 +0300
committerHans Goudey <h.goudey@me.com>2021-02-16 21:02:45 +0300
commitc075b8bff22073b890679855b3342a57640bfba4 (patch)
tree885d4f8c3e616f193524009f16f5d31fe3c9f3f5
parent520d965c77f9109492013d33cff659cd6055ff11 (diff)
Cleanup: Remove use of designated initializers in C++
-rw-r--r--source/blender/editors/space_node/node_draw.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 044f3882d07..8662217961c 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -775,10 +775,10 @@ static void node_socket_draw_multi_input(const float color[4],
const float outline_width = 1.0f;
/* UI_draw_roundbox draws the outline on the outer side, so compensate for the outline width. */
const rctf rect = {
- .xmin = locx - width + outline_width * 0.5f,
- .xmax = locx + width - outline_width * 0.5f,
- .ymin = locy - height + outline_width * 0.5f,
- .ymax = locy + height - outline_width * 0.5f,
+ locx - width + outline_width * 0.5f,
+ locx + width - outline_width * 0.5f,
+ locy - height + outline_width * 0.5f,
+ locy + height - outline_width * 0.5f,
};
UI_draw_roundbox_corner_set(UI_CNR_ALL);