/* prepares shade colors */
-static void shadecolors4(char *coltop, char *coldown, const char *color, short shadetop, short shadedown)
+static void shadecolors4(char coltop[4], char *coldown, const char *color, short shadetop, short shadedown)
{
coltop[0]= CLAMPIS(color[0]+shadetop, 0, 255);
UI_icon_draw_aspect(xs, ys, icon, aspect, alpha);
}
- if(but->flag & UI_ICON_SUBMENU) {
+ if((but->flag & UI_ICON_SUBMENU) && (but->dt == UI_EMBOSSP)) {
xs= rect->xmax-17;
ys= (rect->ymin+rect->ymax- height)/2;
/* ************ button callbacks, state ***************** */
-static void widget_state_blend(char *cp, const char *cpstate, const float fac)
+static void widget_state_blend(char cp[3], const char cpstate[3], const float fac)
{
if(fac != 0.0f) {
cp[0]= (int)((1.0f-fac)*cp[0] + fac*cpstate[0]);