fix [#25283] Edge length display difficult to read
authorCampbell Barton <ideasman42@gmail.com>
Mon, 20 Dec 2010 03:59:22 +0000 (03:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 20 Dec 2010 03:59:22 +0000 (03:59 +0000)
commit3bed4cbf2b4c09dcb62197b8a8c4ec4224abc8b7
treefc800fc89f29db4ac9d951ff148b8424c8cb7c73
parent17f37dceccb99d7eb58f7c29908eeb2bd87cd7ff
fix [#25283] Edge length display difficult to read
- made theme colors for mesh edge len & face angle/area display.
- use %g rather then %f for float display, trims unneeded zeros.
- store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context.
- use unsigned char for more color functions, avoids casting to glColorubv().
34 files changed:
source/blender/blenkernel/BKE_pointcache.h
source/blender/blenkernel/BKE_text.h
source/blender/blenkernel/intern/sequencer.c
source/blender/blenkernel/intern/text.c
source/blender/blenlib/BLI_math_color.h
source/blender/blenlib/intern/math_color.c
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/include/UI_resources.h
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/interface/resources.c
source/blender/editors/interface/view2d.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/space_action/action_draw.c
source/blender/editors/space_console/console_draw.c
source/blender/editors/space_graph/graph_draw.c
source/blender/editors/space_sequencer/sequencer_draw.c
source/blender/editors/space_text/text_draw.c
source/blender/editors/space_text/text_ops.c
source/blender/editors/space_view3d/drawanimviz.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_manipulator.c
source/blender/editors/transform/transform_snap.c
source/blender/editors/uvedit/uvedit_draw.c
source/blender/makesdna/DNA_mesh_types.h
source/blender/makesdna/DNA_text_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_userdef.c