[Bf-blender-cvs] [f7022fc73f0] master: Fix Build Warning
Harley Acheson
noreply at git.blender.org
Fri Jun 18 18:23:01 CEST 2021
Commit: f7022fc73f04011efd1d3ab633d76a030d03b332
Author: Harley Acheson
Date: Fri Jun 18 09:21:51 2021 -0700
Branches: master
https://developer.blender.org/rBf7022fc73f04011efd1d3ab633d76a030d03b332
Fix Build Warning
Removal of unused local variable. Calculation of underline thickness
no longer needed with change to text output of underscore character.
Introduced in aee04d496035
Differential Revision: https://developer.blender.org/D11641
===================================================================
M source/blender/editors/interface/interface_widgets.c
===================================================================
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index 4f24911b8f2..ce1109ad9df 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -2208,7 +2208,6 @@ static void widget_draw_text(const uiFontStyle *fstyle,
}
int ul_width = round_fl_to_int(BLF_width(fstyle->uifont_id, "_", 2));
- int ul_height = max_ii(fstyle->points * U.dpi_fac * 0.1f, U.pixelsize);
struct UnderlineData ul_data = {
.str_offset = ul_index,
More information about the Bf-blender-cvs
mailing list