diff options
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 1 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 24 |
2 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index 3e610e62b5a..0826157b5e6 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -1033,7 +1033,6 @@ struct GPUBatch *ui_batch_roundbox_shadow_get(void); void ui_draw_anti_tria_rect(const rctf *rect, char dir, const float color[4]); void ui_draw_menu_back(struct uiStyle *style, uiBlock *block, rcti *rect); -void ui_draw_box_opaque(rcti *rect, int roundboxalign); void ui_draw_popover_back(struct ARegion *region, struct uiStyle *style, uiBlock *block, diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index a26d409037d..e9acc65ed37 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -4987,30 +4987,6 @@ void ui_draw_menu_back(uiStyle *UNUSED(style), uiBlock *block, rcti *rect) } /** - * Uses the widget base drawing and colors from the box widget, but ensures an opaque - * inner color. - */ -void ui_draw_box_opaque(rcti *rect, int roundboxalign) -{ - uiWidgetType *wt = widget_type(UI_WTYPE_BOX); - - /* Alpha blend with the region's background color to force an opaque background. */ - uiWidgetColors *wcol = &wt->wcol; - wt->state(wt, 0, 0, UI_EMBOSS_UNDEFINED); - float background[4]; - UI_GetThemeColor4fv(TH_BACK, background); - float new_inner[4]; - rgba_uchar_to_float(new_inner, wcol->inner); - new_inner[0] = (new_inner[0] * new_inner[3]) + (background[0] * (1.0f - new_inner[3])); - new_inner[1] = (new_inner[1] * new_inner[3]) + (background[1] * (1.0f - new_inner[3])); - new_inner[2] = (new_inner[2] * new_inner[3]) + (background[2] * (1.0f - new_inner[3])); - new_inner[3] = 1.0f; - rgba_float_to_uchar(wcol->inner, new_inner); - - wt->custom(NULL, wcol, rect, 0, roundboxalign); -} - -/** * Similar to 'widget_menu_back', however we can't use the widget preset system * because we need to pass in the original location so we know where to show the arrow. */ |