Commit c1d77e19 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fixed bug with iemgui base not updating its color correctly

parent b698ceb0
......@@ -2716,6 +2716,11 @@ function gui_iemgui_drawborder(cid, tag, bgcolor, x1, y1, x2, y2) {
g.appendChild(rect);
}
function gui_iemgui_border_color(cid, tag, color) {
var b = get_gobj(cid, tag).querySelector('.border');
configure_item(b, { fill: color });
}
function gui_iemgui_move_and_resize(cid, tag, x1, y1, x2, y2) {
var gobj = get_gobj(cid, tag);
var item = gobj.querySelector('.border');
......
......@@ -1232,25 +1232,25 @@ void iemgui_base_draw_move(t_iemgui *x) {
canvas, x, x1, y1, x2, y2);
}
/* I don't think this is needed anymore */
void iemgui_base_draw_config(t_iemgui *x) {
/*
t_canvas *canvas=glist_getcanvas(x->x_glist);
char fcol[8]; sprintf(fcol,"#%6.6x", x->x_fcol);
*/
//sys_vgui(".x%lx.c itemconfigure %lxBASE -fill #%6.6x\n", canvas, x, x->x_bcol);
/*
char tagbuf[MAXPDSTRING];
char bcol[8]; sprintf(bcol, "#%6.6x", x->x_bcol);
sprintf(tagbuf, "x%lxborder", (long unsigned int)x);
gui_start_vmess("gui_configure_item", "xs",
canvas, tagbuf);
gui_start_array();
gui_s("fill");
gui_s(bcol);
gui_end_array();
gui_end_vmess();
*/
// gui_start_vmess("gui_configure_item", "xs",
// canvas, tagbuf);
// gui_start_array();
// gui_s("fill");
// gui_s(bcol);
// gui_end_array();
// gui_end_vmess();
gui_vmess("gui_iemgui_border_color", "xxs",
canvas, x, bcol);
}
void iemgui_draw_update(t_iemgui *x, t_glist *glist) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment