UI: refactor layout vars out of uiFontStyle
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Jan 2019 22:58:03 +0000 (09:58 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 4 Jan 2019 00:00:48 +0000 (11:00 +1100)
commit54a4c1cf359c369c8fc16ecf0ecaa92e6f650e2f
tree763437a793072d559095c6bb8d9cf23ca1c111f1
parent4431c5825bf26d314abe1f79646883fd746e495b
UI: refactor layout vars out of uiFontStyle

Word wrap and alignment layout args only used by UI_fontstyle_draw
were vars in uiFontStyle.
These were written to before drawing, so better pass as an argument.

Pass uiFontStyle & uiWidgetColors as const args.
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_panel.c
source/blender/editors/interface/interface_region_search.c
source/blender/editors/interface/interface_region_tooltip.c
source/blender/editors/interface/interface_style.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/space_file/file_draw.c
source/blender/makesdna/DNA_userdef_types.h