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
David MacDonald
purr-data
Commits
bd1372ba
Commit
bd1372ba
authored
Apr 05, 2011
by
Ivica Bukvic
Committed by
Hans-Christoph Steiner
Nov 02, 2011
Browse files
Pd-0.42.5-extended-l2ork-dev-20110404.tar.bz2
parent
558876b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/g_canvas.c
View file @
bd1372ba
...
...
@@ -934,6 +934,27 @@ void canvas_deletelinesfor(t_canvas *x, t_text *text)
}
}
/* delete all lines for the object
for efficient redrawing of connections */
void
canvas_eraselinesfor
(
t_canvas
*
x
,
t_text
*
text
)
{
t_linetraverser
t
;
t_outconnect
*
oc
;
linetraverser_start
(
&
t
,
x
);
while
(
oc
=
linetraverser_next
(
&
t
))
{
if
(
t
.
tr_ob
==
text
||
t
.
tr_ob2
==
text
)
{
if
(
x
->
gl_editor
)
{
sys_vgui
(
".x%lx.c delete l%lx
\n
"
,
glist_getcanvas
(
x
),
oc
);
}
}
}
}
/* kill all lines for one inlet or outlet */
void
canvas_deletelinesforio
(
t_canvas
*
x
,
t_text
*
text
,
t_inlet
*
inp
,
t_outlet
*
outp
)
...
...
src/g_canvas.h
View file @
bd1372ba
...
...
@@ -479,6 +479,7 @@ EXTERN t_symbol *canvas_makebindsym(t_symbol *s);
EXTERN
void
canvas_vistext
(
t_canvas
*
x
,
t_text
*
y
);
EXTERN
void
canvas_fixlinesfor
(
t_canvas
*
x
,
t_text
*
text
);
EXTERN
void
canvas_deletelinesfor
(
t_canvas
*
x
,
t_text
*
text
);
EXTERN
void
canvas_eraselinesfor
(
t_canvas
*
x
,
t_text
*
text
);
EXTERN
void
canvas_stowconnections
(
t_canvas
*
x
);
EXTERN
void
canvas_restoreconnections
(
t_canvas
*
x
);
EXTERN
void
canvas_redraw
(
t_canvas
*
x
);
...
...
src/g_magicglass.c
View file @
bd1372ba
...
...
@@ -413,7 +413,7 @@ void magicGlass_free(t_magicGlass *x)
void
magicGlass_setup
(
void
)
{
magicGlass_class
=
class_new
(
gensym
(
"magicGlass"
),
(
t_newmethod
)
magicGlass_new
,
0
,
(
t_method
)
magicGlass_free
,
sizeof
(
t_magicGlass
),
0
,
...
...
src/g_text.c
View file @
bd1372ba
...
...
@@ -89,6 +89,7 @@ void canvas_getargs(int *argcp, t_atom **argvp);
static
void
canvas_objtext
(
t_glist
*
gl
,
int
xpix
,
int
ypix
,
int
selected
,
t_binbuf
*
b
)
{
//fprintf(stderr,"objtext\n");
t_text
*
x
;
int
argc
;
t_atom
*
argv
;
...
...
@@ -1749,6 +1750,7 @@ void text_setto(t_text *x, t_glist *glist, char *buf, int bufsize)
else
/* normally, just destroy the old one and make a new one. */
{
int
xwas
=
x
->
te_xpix
,
ywas
=
x
->
te_ypix
;
canvas_eraselinesfor
(
glist
,
x
);
glist_delete
(
glist
,
&
x
->
te_g
);
canvas_objtext
(
glist
,
xwas
,
ywas
,
0
,
b
);
/* if it's an abstraction loadbang it here */
...
...
src/m_pd.h
View file @
bd1372ba
...
...
@@ -11,7 +11,7 @@ extern "C" {
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 42
#define PD_BUGFIX_VERSION 5
#define PD_TEST_VERSION "extended-l2ork-2011040
3
"
#define PD_TEST_VERSION "extended-l2ork-2011040
4
"
/* old name for "MSW" flag -- we have to take it for the sake of many old
"nmakefiles" for externs, which will define NT and not MSW */
...
...
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