diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-01-12 01:07:40 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-01-12 01:08:38 +0300 |
commit | bbe59c6014535b125e39f7466ee0930a07116571 (patch) | |
tree | 85e233413aa40f7e127eb5aa2772d070b56aec20 /source/blender/editors/interface/interface_widgets.c | |
parent | ab125f466c975f80cc179f7e7a53e09feb868bfd (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.c | 2 |
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); |