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-04-24 22:15:57 +0300
committerHans Goudey <h.goudey@me.com>2021-04-24 22:15:57 +0300
commit3a6f481d5a73bd2f35877394f2c4362697572663 (patch)
treebdb763eb4d29569eed0fe081b06cf9b6763c747d /source/blender/editors/space_info/info_stats.cc
parentc96f9bd340004e8d6750764ac80da0c3f92cdf5d (diff)
Fix windows build: Don't use designated initializers in C++
Removes a cast in an argument followed by an initializer list, and designated initializers, which are only part of the C++20 standard.
Diffstat (limited to 'source/blender/editors/space_info/info_stats.cc')
-rw-r--r--source/blender/editors/space_info/info_stats.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_info/info_stats.cc b/source/blender/editors/space_info/info_stats.cc
index 71a2594a8be..de92feaed10 100644
--- a/source/blender/editors/space_info/info_stats.cc
+++ b/source/blender/editors/space_info/info_stats.cc
@@ -696,7 +696,8 @@ void ED_info_draw_stats(
UI_FontThemeColor(font_id, TH_TEXT_HI);
BLF_enable(font_id, BLF_SHADOW);
- BLF_shadow(font_id, 5, (const float[4]){0.0f, 0.0f, 0.0f, 1.0f});
+ const float shadow_color[4] = {0.0f, 0.0f, 0.0f, 1.0f};
+ BLF_shadow(font_id, 5, shadow_color);
BLF_shadow_offset(font_id, 1, -1);
/* Translated labels for each stat row. */