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
a3db8525
Commit
a3db8525
authored
Sep 08, 2014
by
Ivica Bukvic
Browse files
*more regressions from the refactoring
parent
404aa555
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/src/g_bang.c
View file @
a3db8525
...
...
@@ -368,7 +368,7 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_handle
=
scalehandle_new
((
t_object
*
)
x
,
x
->
x_gui
.
x_glist
,
1
,
bng__clickhook
,
bng__motionhook
);
x
->
x_gui
.
x_lhandle
=
scalehandle_new
((
t_object
*
)
x
,
x
->
x_gui
.
x_glist
,
0
,
bng__clickhook
,
bng__motionhook
);
x
->
x_gui
.
x_obj
.
te_iemgui
=
1
;
x
->
x_gui
.
x_changed
=
0
;
x
->
x_gui
.
x_changed
=
-
1
;
return
(
x
);
}
...
...
pd/src/g_radio.c
View file @
a3db8525
...
...
@@ -378,7 +378,9 @@ static int radio_newclick(t_gobj *z, struct _glist *glist, int xpix, int ypix,
static
void
radio_loadbang
(
t_radio
*
x
)
{
if
(
!
sys_noloadbang
&&
x
->
x_gui
.
x_loadinit
)
{
radio_bang
(
x
);
}
}
static
void
radio_number
(
t_radio
*
x
,
t_floatarg
num
)
...
...
@@ -438,7 +440,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
bflcol
[
0
]
=
atom_getintarg
(
11
,
argc
,
argv
);
bflcol
[
1
]
=
atom_getintarg
(
12
,
argc
,
argv
);
bflcol
[
2
]
=
atom_getintarg
(
13
,
argc
,
argv
);
on
=
mini
(
maxi
(
atom_getintarg
(
14
,
argc
,
argv
),
0
),
x
->
x_number
-
1
);
on
=
mini
(
maxi
(
atom_getintarg
(
14
,
argc
,
argv
),
0
),
num
-
1
);
}
else
iemgui_new_getnames
(
&
x
->
x_gui
,
4
,
0
);
x
->
x_gui
.
x_draw
=
(
t_iemfunptr
)
radio_draw
;
...
...
@@ -446,7 +448,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
if
(
x
->
x_gui
.
x_font_style
<
0
||
x
->
x_gui
.
x_font_style
>
2
)
x
->
x_gui
.
x_font_style
=
0
;
x
->
x_number
=
num
;
x
->
x_on
=
x
->
x_gui
.
x_loadinit
?
on
:
0
;
x
->
x_on_old
=
x
->
x_on
;
x
->
x_on_old
=
-
1
;
x
->
x_change
=
(
chg
==
0
)
?
0
:
1
;
if
(
iemgui_has_rcv
(
&
x
->
x_gui
))
pd_bind
(
&
x
->
x_gui
.
x_obj
.
ob_pd
,
x
->
x_gui
.
x_rcv
);
...
...
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