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:
authorHarley Acheson <harley.acheson@gmail.com>2022-01-12 01:07:40 +0300
committerHarley Acheson <harley.acheson@gmail.com>2022-01-12 01:08:38 +0300
commitbbe59c6014535b125e39f7466ee0930a07116571 (patch)
tree85e233413aa40f7e127eb5aa2772d070b56aec20 /source/blender/editors/interface/interface_widgets.c
parentab125f466c975f80cc179f7e7a53e09feb868bfd (diff)
BLF: Reduction of use of BLF_DRAW_STR_DUMMY_MAX
Reduction of the number of uses of the define BLF_DRAW_STR_DUMMY_MAX by using actual sizes of static character arrays. See D13793 for more details. Differential Revision: https://developer.blender.org/D13793 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r--source/blender/editors/interface/interface_widgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index ad8c0842657..06de4f09d06 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -5421,7 +5421,7 @@ void ui_draw_menu_item(const uiFontStyle *fstyle,
&(struct uiFontStyleDraw_Params){
.align = UI_STYLE_TEXT_LEFT,
},
- BLF_DRAW_STR_DUMMY_MAX,
+ sizeof(drawstr),
&xofs,
&yofs,
&info);