Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
c1d77e19
Commit
c1d77e19
authored
Jul 11, 2015
by
Jonathan Wilkes
Browse files
fixed bug with iemgui base not updating its color correctly
parent
b698ceb0
Changes
2
Show whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
c1d77e19
...
...
@@ -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
'
);
...
...
pd/src/g_all_guis.c
View file @
c1d77e19
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment