diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-11-25 20:48:52 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-11-25 21:51:15 +0300 |
commit | 6c704b46327501b6aeeca96c1edfa97156e829e3 (patch) | |
tree | 73129727e3f170a202d60c7f4837547155246e66 /source/blender/editors/interface/interface_region_tooltip.c | |
parent | b7e02c677d2dc5c4d84bc670d4d9edda6bcbdda3 (diff) |
UI: Disable font shadow in tooltip
When I added this a few years ago, it was meant to create a fake bold effect.
With the new text shadow drawing code, that doesn't work well though.
Diffstat (limited to 'source/blender/editors/interface/interface_region_tooltip.c')
-rw-r--r-- | source/blender/editors/interface/interface_region_tooltip.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_region_tooltip.c b/source/blender/editors/interface/interface_region_tooltip.c index b8cbf7950b7..1a167b3fd72 100644 --- a/source/blender/editors/interface/interface_region_tooltip.c +++ b/source/blender/editors/interface/interface_region_tooltip.c @@ -228,18 +228,12 @@ static void ui_tooltip_region_draw_cb(const bContext *UNUSED(C), ARegion *ar) uiFontStyle fstyle_header = data->fstyle; /* override text-style */ - fstyle_header.shadow = 1; - fstyle_header.shadowcolor = rgb_to_grayscale(tip_colors[UI_TIP_LC_MAIN]); - fstyle_header.shadx = fstyle_header.shady = 0; - fstyle_header.shadowalpha = 1.0f; fstyle_header.word_wrap = true; rgb_float_to_uchar(drawcol, tip_colors[UI_TIP_LC_MAIN]); UI_fontstyle_set(&fstyle_header); UI_fontstyle_draw(&fstyle_header, &bbox, field->text, drawcol); - fstyle_header.shadow = 0; - /* offset to the end of the last line */ if (field->text_suffix) { float xofs = field->geom.x_pos; |