Skip to content
GitLab
Projects
Groups
Snippets
/
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
6b702497
Commit
6b702497
authored
Mar 08, 2017
by
Jonathan Wilkes
Browse files
fix small display bug with dropdown atom
parent
1df738d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
6b702497
...
@@ -2008,7 +2008,7 @@ function gui_atom_draw_border(cid, tag, type, width, height) {
...
@@ -2008,7 +2008,7 @@ function gui_atom_draw_border(cid, tag, type, width, height) {
}
}
}
}
function
gui_atom_redraw_border
(
cid
,
tag
,
is_dropdown
,
width
,
height
)
{
function
gui_atom_redraw_border
(
cid
,
tag
,
type
,
width
,
height
)
{
var
g
=
get_gobj
(
cid
,
tag
),
var
g
=
get_gobj
(
cid
,
tag
),
p
,
a
;
p
,
a
;
// Unfortunately Pd will send updates for gui objects that
// Unfortunately Pd will send updates for gui objects that
...
@@ -2022,12 +2022,12 @@ function gui_atom_redraw_border(cid, tag, is_dropdown, width, height) {
...
@@ -2022,12 +2022,12 @@ function gui_atom_redraw_border(cid, tag, is_dropdown, width, height) {
// So we have to check for existence here...
// So we have to check for existence here...
if
(
p
)
{
if
(
p
)
{
configure_item
(
p
,
{
configure_item
(
p
,
{
points
:
atom_border_points
(
width
,
height
)
points
:
atom_border_points
(
width
,
height
,
type
!==
0
)
});
});
if
(
!!
is_dropdown
)
{
if
(
type
!==
0
)
{
a
=
g
.
querySelectorAll
(
"
polygon
"
)[
1
];
a
=
g
.
querySelectorAll
(
"
polygon
"
)[
1
];
configure_item
(
a
,
{
configure_item
(
a
,
{
points
:
atom_arrow_points
(
width
,
height
)
points
:
atom_arrow_points
(
width
,
height
)
,
});
});
}
}
}
}
...
...
pd/src/g_text.c
View file @
6b702497
...
@@ -2744,7 +2744,8 @@ void text_drawborder(t_text *x, t_glist *glist,
...
@@ -2744,7 +2744,8 @@ void text_drawborder(t_text *x, t_glist *glist,
gui_vmess
(
"gui_atom_redraw_border"
,
"xsiii"
,
gui_vmess
(
"gui_atom_redraw_border"
,
"xsiii"
,
glist_getcanvas
(
glist
),
glist_getcanvas
(
glist
),
tag
,
tag
,
pd_class
(
&
x
->
te_pd
)
==
dropdown_class
?
1
:
0
,
pd_class
(
&
x
->
te_pd
)
==
dropdown_class
?
((
t_dropdown
*
)
x
)
->
a_outtype
+
1
:
0
,
x2
-
x1
,
x2
-
x1
,
y2
-
y1
);
y2
-
y1
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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