Cleanup: Remove unused function
This commit is contained in:
parent
7ac4e874db
commit
742b7adbad
|
@ -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,
|
||||
|
|
|
@ -4986,30 +4986,6 @@ void ui_draw_menu_back(uiStyle *UNUSED(style), uiBlock *block, rcti *rect)
|
|||
ui_draw_clip_tri(block, rect, wt);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
|
Loading…
Reference in New Issue