From 6b26024ea41f4ec25bf52872c18f08ec8f78138a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 08:44:38 +0200 Subject: Cleanup: comment length in interface --- source/blender/editors/interface/interface_utils.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/interface/interface_utils.c') diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c index 9920d4f1fa5..bf52cc625c2 100644 --- a/source/blender/editors/interface/interface_utils.c +++ b/source/blender/editors/interface/interface_utils.c @@ -508,7 +508,8 @@ int UI_icon_from_report_type(int type) /********************************** Misc **************************************/ /** - * Returns the best "UI" precision for given floating value, so that e.g. 10.000001 rather gets drawn as '10'... + * Returns the best "UI" precision for given floating value, + * so that e.g. 10.000001 rather gets drawn as '10'... */ int UI_calc_float_precision(int prec, double value) { @@ -519,7 +520,8 @@ int UI_calc_float_precision(int prec, double value) BLI_assert(prec <= UI_PRECISION_FLOAT_MAX); BLI_assert(fabs(pow10_neg[prec] - pow(10, -prec)) < 1e-16); - /* check on the number of decimal places need to display the number, this is so 0.00001 is not displayed as 0.00, + /* Check on the number of decimal places need to display the number, + * this is so 0.00001 is not displayed as 0.00, * _but_, this is only for small values si 10.0001 will not get the same treatment. */ value = ABS(value); @@ -631,8 +633,10 @@ uiButStore *UI_butstore_create(uiBlock *block) void UI_butstore_free(uiBlock *block, uiButStore *bs_handle) { /* Workaround for button store being moved into new block, - * which then can't use the previous buttons state ('ui_but_update_from_old_block' fails to find a match), - * keeping the active button in the old block holding a reference to the button-state in the new block: see T49034. + * which then can't use the previous buttons state + * ('ui_but_update_from_old_block' fails to find a match), + * keeping the active button in the old block holding a reference + * to the button-state in the new block: see T49034. * * Ideally we would manage moving the 'uiButStore', keeping a correct state. * All things considered this is the most straightforward fix - Campbell. -- cgit v1.2.3