b = glCompButtonNew((glCompObj *) p, 1, y, 42, 42, "");
glCompButtonAddPngGlyph(b, smyrnaPath("details.png"));
b->common.callbacks.click = attrList;
- copy_glcomp_color(&c, &b->common.color);
-
+ b->common.color = c;
y = y + off;
glCompButtonAddPngGlyph(b, smyrnaPath("zoomin.png"));
b->groupid = 0;
b->common.callbacks.click = menu_click_zoom_plus;
- copy_glcomp_color(&c, &b->common.color);
+ b->common.color = c;
y = y + off;
b = glCompButtonNew((glCompObj *) p, 1, y, 42, 42, "");
glCompButtonAddPngGlyph(b, smyrnaPath("zoomout.png"));
b->common.callbacks.click = menu_click_zoom_minus;
- copy_glcomp_color(&c, &b->common.color);
+ b->common.color = c;
y = y + off;
b = glCompButtonNew((glCompObj *) p, 1, y, 42, 42, "");
glCompButtonAddPngGlyph(b, smyrnaPath("center.png"));
b->common.callbacks.click = menu_click_center;
- copy_glcomp_color(&c, &b->common.color);
-
-
-
-
-
-
-
-
-
-
-
+ b->common.color = c;
p = glCompPanelNew((glCompObj *) s, -250, 550, 150, 175);
p->common.borderWidth = 0;
if (parentObj) {
c->parent = &parentObj->common;
parent = &parentObj->common;
- copy_glcomp_color(&parent->color, &c->color);
+ c->color = parent->color;
c->layer = parent->layer + 1;
c->pos.z = parent->pos.z;
glCompSetAddObj((glCompSet *) parent->compset, childObj);
extern void glCompDrawRectPrism(glCompPoint * p, GLfloat w, GLfloat h,
GLfloat b, GLfloat d, glCompColor * c,
int bumped);
- extern void copy_glcomp_color(glCompColor * source,
- glCompColor * target);
extern void glCompSetColor(glCompColor * c);
extern GLfloat distBetweenPts(glCompPoint A,glCompPoint B,float R);