Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
2c0642ba
Commit
2c0642ba
authored
9 years ago
by
Jonathan Wilkes
Browse files
Options
Downloads
Patches
Plain Diff
remove remaining sys_vgui calls from g_scalar.c
parent
3f0b65b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/g_scalar.c
+19
-9
19 additions, 9 deletions
pd/src/g_scalar.c
with
19 additions
and
9 deletions
pd/src/g_scalar.c
+
19
−
9
View file @
2c0642ba
...
@@ -957,14 +957,22 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
...
@@ -957,14 +957,22 @@ static void scalar_vis(t_gobj *z, t_glist *owner, int vis)
{
{
int
x1
=
glist_xtopixels
(
owner
,
basex
);
int
x1
=
glist_xtopixels
(
owner
,
basex
);
int
y1
=
glist_ytopixels
(
owner
,
basey
);
int
y1
=
glist_ytopixels
(
owner
,
basey
);
sys_vgui
(
".x%lx.c create prect %d %d %d %d "
/* Let's just not create anything to visualize scalars that
"-tags {blankscalar%lx %s}
\n
"
,
don't have a template. Pd Vanilla draws a single pixel to
glist_getcanvas
(
owner
),
x1
-
1
,
y1
-
1
,
x1
+
1
,
y1
+
1
,
x
,
represent them, so later we might want to do a simple
(
glist_isselected
(
owner
,
&
x
->
sc_gobj
)
?
shape for them... */
"scalar_selected"
:
""
));
//sys_vgui(".x%lx.c create prect %d %d %d %d "
// "-tags {blankscalar%lx %s}\n",
// glist_getcanvas(owner), x1-1, y1-1, x1+1, y1+1, x,
// (glist_isselected(owner, &x->sc_gobj) ?
// "scalar_selected" : ""));
}
else
{
/* No need to delete if we don't draw anything... */
//sys_vgui(".x%lx.c delete blankscalar%lx\n",
// glist_getcanvas(owner), x);
}
}
else
sys_vgui
(
".x%lx.c delete blankscalar%lx
\n
"
,
glist_getcanvas
(
owner
),
x
);
return
;
return
;
}
}
//else sys_vgui(".x%lx.c delete blankscalar%lx\n",
//else sys_vgui(".x%lx.c delete blankscalar%lx\n",
...
@@ -1063,8 +1071,10 @@ static void scalar_doredraw(t_gobj *client, t_glist *glist)
...
@@ -1063,8 +1071,10 @@ static void scalar_doredraw(t_gobj *client, t_glist *glist)
if
(
glist_isselected
(
glist_getcanvas
(
glist
),
(
t_gobj
*
)
glist
))
if
(
glist_isselected
(
glist_getcanvas
(
glist
),
(
t_gobj
*
)
glist
))
{
{
//fprintf(stderr,"yes\n");
//fprintf(stderr,"yes\n");
sys_vgui
(
"pdtk_select_all_gop_widgets .x%lx %lx %d
\n
"
,
/* I still don't understand what this does... should probably
glist_getcanvas
(
glist
),
glist
,
1
);
do some scalar gop tests to see if it is actually needed... */
//sys_vgui("pdtk_select_all_gop_widgets .x%lx %lx %d\n",
// glist_getcanvas(glist), glist, 1);
}
}
canvas_getscroll
(
glist_getcanvas
(
glist
));
canvas_getscroll
(
glist_getcanvas
(
glist
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment