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
Aayush
purr-data
Commits
dc1ae32b
Commit
dc1ae32b
authored
Dec 10, 2015
by
Jonathan Wilkes
Browse files
revised Ivica's fudge factors to get iemguis in a gop to show up correctly in legacy mode
parent
71cad3e0
Changes
7
Hide whitespace changes
Inline
Side-by-side
pd/src/g_bang.c
View file @
dc1ae32b
...
...
@@ -479,7 +479,7 @@ static void *bng_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_changed
=
-
1
;
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
//x->x_gui.click_x = 1;
//x->x_gui.click_y = 2;
...
...
pd/src/g_mycanvas.c
View file @
dc1ae32b
...
...
@@ -385,7 +385,7 @@ static void *my_canvas_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_obj
.
te_iemgui
=
1
;
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
return
(
x
);
}
...
...
pd/src/g_numbox.c
View file @
dc1ae32b
...
...
@@ -838,7 +838,7 @@ static void *my_numbox_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_changed
=
0
;
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
return
(
x
);
}
...
...
pd/src/g_radio.c
View file @
dc1ae32b
...
...
@@ -534,7 +534,7 @@ static void *radio_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_obj
.
te_iemgui
=
1
;
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
return
(
x
);
}
...
...
pd/src/g_slider.c
View file @
dc1ae32b
...
...
@@ -598,10 +598,10 @@ static void *slider_new(t_symbol *s, int argc, t_atom *argv)
if
(
x
->
x_orient
)
{
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
0
;
x
->
x_gui
.
legacy_y
=
-
2
;
}
else
{
x
->
x_gui
.
legacy_x
=
-
3
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
}
...
...
pd/src/g_toggle.c
View file @
dc1ae32b
...
...
@@ -397,7 +397,7 @@ static void *toggle_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_changed
=
1
;
x
->
x_gui
.
legacy_x
=
0
;
x
->
x_gui
.
legacy_y
=
2
;
x
->
x_gui
.
legacy_y
=
0
;
//x->x_gui.click_x = 1;
//x->x_gui.click_y = 2;
...
...
pd/src/g_vumeter.c
View file @
dc1ae32b
...
...
@@ -450,7 +450,8 @@ static void vu_getrect(t_gobj *z, t_glist *glist,
iemgui_label_getrect
(
x
->
x_gui
,
glist
,
xp1
,
yp1
,
xp2
,
yp2
);
if
(
x
->
x_scale
)
/* In legacy mode we don't include the scale in the rect */
if
(
x
->
x_scale
&&
!
sys_legacy
)
{
//vu has custom scale all labels unlike other iemgui object
end
=
x1
+
x
->
x_gui
.
x_w
+
4
;
...
...
@@ -748,7 +749,7 @@ static void *vu_new(t_symbol *s, int argc, t_atom *argv)
x
->
x_gui
.
x_obj
.
te_iemgui
=
1
;
x
->
x_gui
.
legacy_x
=
-
1
;
x
->
x_gui
.
legacy_y
=
0
;
x
->
x_gui
.
legacy_y
=
-
2
;
return
(
x
);
}
...
...
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