Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
f0ec2753
Commit
f0ec2753
authored
Aug 11, 2014
by
Mathieu L Bouchard
Browse files
fix bug in drawing iemgui_base with labels & gop (introduced by refac #6)
parent
e19a3b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_all_guis.c
View file @
f0ec2753
...
...
@@ -1029,8 +1029,9 @@ void iemgui_io_draw_move(t_iemgui *x, t_glist *canvas, const char *nlet_tag) {
void
iemgui_base_draw_new
(
t_iemgui
*
x
,
t_glist
*
canvas
,
const
char
*
nlet_tag
)
{
t_class
*
c
=
pd_class
((
t_pd
*
)
x
);
int
x1
,
y1
,
x2
,
y2
;
int
x1
,
y1
,
x2
,
y2
,
gr
=
gop_redraw
;
gop_redraw
=
0
;
c
->
c_wb
->
w_getrectfn
((
t_gobj
*
)
x
,
x
->
x_glist
,
&
x1
,
&
y1
,
&
x2
,
&
y2
);
gop_redraw
=
gr
;
sys_vgui
(
".x%lx.c create prect %d %d %d %d "
"-stroke $pd_colors(iemgui_border) -fill #%6.6x "
"-tags {%lxBASE %lxOBJ text iemgui border %s}
\n
"
,
...
...
@@ -1039,8 +1040,9 @@ void iemgui_base_draw_new(t_iemgui *x, t_glist *canvas, const char *nlet_tag) {
void
iemgui_base_draw_move
(
t_iemgui
*
x
,
t_glist
*
canvas
,
const
char
*
nlet_tag
)
{
t_class
*
c
=
pd_class
((
t_pd
*
)
x
);
int
x1
,
y1
,
x2
,
y2
;
int
x1
,
y1
,
x2
,
y2
,
gr
=
gop_redraw
;
gop_redraw
=
0
;
c
->
c_wb
->
w_getrectfn
((
t_gobj
*
)
x
,
x
->
x_glist
,
&
x1
,
&
y1
,
&
x2
,
&
y2
);
gop_redraw
=
gr
;
sys_vgui
(
".x%lx.c coords %lxBASE %d %d %d %d
\n
"
,
canvas
,
x
,
x1
,
y1
,
x2
,
y2
);
}
...
...
Write
Preview
Supports
Markdown
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