void panel_draw(PANEL *p, int x, int y, int width, int height) { FUNC(); pushclip(x, y, width, height); if(p->type) { drawfunc[p->type - 1](p, x, y, width, height); } else { if(p->drawfunc) { p->drawfunc(x, y, width, height); } } PANEL **pp = p->child, *subp; if(pp) { while((subp = *pp++)) { if(!subp->disabled) { panel_draw_sub(subp, x, y, width, height); } } } popclip(); enddraw(x, y, width, height); }
void panel_draw(PANEL *p, int x, int y, int width, int height) { FIX_XY_CORDS_FOR_SUBPANELS(); panel_draw_core(p, x, y, width, height); // popclip(); dropdown_drawactive(); contextmenu_draw(); tooltip_draw(); enddraw(x, y, width, height); }