diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_region_search.c | 4 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_region_search.c b/source/blender/editors/interface/interface_region_search.c index 9ca79a3dc63..d262cbc38bd 100644 --- a/source/blender/editors/interface/interface_region_search.c +++ b/source/blender/editors/interface/interface_region_search.c @@ -406,7 +406,7 @@ static void ui_searchbox_region_draw_cb(const bContext *C, ARegion *ar) wmOrtho2_region_pixelspace(ar); if (data->noback == false) { - ui_draw_widget_back(UI_WTYPE_BOX, true, &data->bbox); + ui_draw_widget_back(UI_WTYPE_MENU_BACK, true, &data->bbox); } /* draw text */ @@ -686,7 +686,7 @@ static void ui_searchbox_region_draw_cb__operator(const bContext *UNUSED(C), ARe wmOrtho2_region_pixelspace(ar); if (data->noback == false) { - ui_draw_widget_back(UI_WTYPE_BOX, true, &data->bbox); + ui_draw_widget_back(UI_WTYPE_MENU_BACK, true, &data->bbox); } /* draw text */ diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 19aff48e2c1..c390c3fdda8 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -4564,6 +4564,7 @@ void ui_draw_widget_back_color( if (use_shadow) { GPU_blend(true); + GPU_blend_set_func_separate(GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA); widget_softshadow(rect, UI_CNR_ALL, 0.25f * U.widget_unit); GPU_blend(false); } |